Add test case to user-id-test.js

This commit is contained in:
Tankred Hase 2016-06-01 09:32:29 +02:00
parent e7735f0346
commit 5d4e162c01

View File

@ -124,6 +124,11 @@ describe('User ID Integration Tests', function() {
expect(gotten).to.deep.equal(flagged); 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 *() { it('should flag no documents no param', function *() {
let flagged = yield userId.flagForRemove({}); let flagged = yield userId.flagForRemove({});
expect(flagged.length).to.equal(0); expect(flagged.length).to.equal(0);