diff options
author | Valentin Popov <info@valentineus.link> | 2018-10-01 04:21:21 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-10-01 04:21:21 +0300 |
commit | 292e91fec05e7975e8632d31840acf8551f44bd7 (patch) | |
tree | de69a2986be17c631e750a760795dea8ac5b28d9 | |
parent | 0cd67cd77c18ce5a039a530905a0ac3ce0bfbad1 (diff) | |
download | js-github-library-292e91fec05e7975e8632d31840acf8551f44bd7.tar.xz js-github-library-292e91fec05e7975e8632d31840acf8551f44bd7.zip |
Testing plug-in code
Signed-off-by: Valentin Popov <info@valentineus.link>
-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(); + }); +}); |