aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-10-01 04:21:21 +0300
committerValentin Popov <info@valentineus.link>2018-10-01 04:21:21 +0300
commit292e91fec05e7975e8632d31840acf8551f44bd7 (patch)
treede69a2986be17c631e750a760795dea8ac5b28d9
parent0cd67cd77c18ce5a039a530905a0ac3ce0bfbad1 (diff)
downloadjs-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.js9
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();
+ });
+});