diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.test.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/index.test.js b/src/index.test.js new file mode 100644 index 0000000..3baea39 --- /dev/null +++ b/src/index.test.js @@ -0,0 +1,9 @@ +import { getComments } from "."; + +test("getComments()", (done) => { + getComments("octocat/Hello-World", 1, (error, response) => { + if (error) { throw new Error(error); } + expect(response.shift().id).toBe(1340258); + done(); + }); +}); |