UNPKG

leagueofcomicgeeks

Version:

Unofficial Node.js library for interacting with League of Comic Geeks

24 lines (21 loc) 808 B
module.exports = function (lofcg, pullListDate) { require('../../shared/pull-list/issues-list.spec')(lofcg, pullListDate); describe('add issue to list', function () { it('should return error when adding to pull list without permission', function (done) { lofcg.pullList.add(testIssueId, (err) => { expect(err).toEqual(jasmine.any(Error)); expect(err.message).toEqual('Not authenticated'); done(); }); }); }); describe('remove issue from list', function () { it('should return error when removing to pull list without permission', function (done) { lofcg.pullList.remove(testIssueId, (err) => { expect(err).toEqual(jasmine.any(Error)); expect(err.message).toEqual('Not authenticated'); done(); }); }); }); };