diff --git a/test/integration/user-id-test.js b/test/integration/user-id-test.js index 7f842cd..d5c7c50 100644 --- a/test/integration/user-id-test.js +++ b/test/integration/user-id-test.js @@ -124,6 +124,11 @@ describe('User ID Integration Tests', function() { expect(gotten).to.deep.equal(flagged); }); + it('should flag no documents for wrong key id param', function *() { + let flagged = yield userId.flagForRemove({ keyid:'4' }); + expect(flagged.length).to.equal(0); + }); + it('should flag no documents no param', function *() { let flagged = yield userId.flagForRemove({}); expect(flagged.length).to.equal(0);