aboutsummaryrefslogtreecommitdiff
path: root/src/index.test.js
blob: 3baea3975d77d4e3ea4b5164c81a02313faf7a89 (plain) (blame)
1
2
3
4
5
6
7
8
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();
    });
});