From ff82dd2e8223e1cf0421b13431e35febd123559d Mon Sep 17 00:00:00 2001 From: Gregor Martynus Date: Wed, 6 Nov 2019 14:19:12 -0800 Subject: [PATCH] test: base64 encode README.md content --- test/push-master-setup/test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/push-master-setup/test.js b/test/push-master-setup/test.js index 0a0adea4..e2f4c544 100644 --- a/test/push-master-setup/test.js +++ b/test/push-master-setup/test.js @@ -48,7 +48,10 @@ nock("https://api.github.com", { // Create tweets/README.md file .put("/repos/gr2m/twitter-together/contents/tweets/README.md", body => { - tap.equal(body.content, "contents of tweets/README.md".toString("base64")); + tap.equal( + body.content, + Buffer.from("contents of tweets/README.md").toString("base64") + ); tap.equal(body.branch, "twitter-together-setup"); tap.equal(body.message, "twitter-together setup");