Skip to content

Commit

Permalink
test: base64 encode README.md content
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Nov 6, 2019
1 parent 345bde0 commit ff82dd2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/push-master-setup/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit ff82dd2

Please sign in to comment.