Permalink
Browse files

FIX minor error in tests

  • Loading branch information...
florianheinemann committed Jul 14, 2018
1 parent c80d3a3 commit dd5f89612b15bf2219683a9aaa0dc1923cdc1f6e
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/delivery/requestToken.test.js
@@ -256,7 +256,7 @@ describe('passwordless', function() {
it('should have sent and stored token', function () {
expect(mocks.delivered.length).to.equal(1);
expect(mocks.delivered[0].token).to.be.a('string');
expect(mocks.delivered[0].token).to.be.within(0, 9999);
expect(parseInt(mocks.delivered[0].token, 10)).to.be.within(0, 9999);
expect(mocks.delivered[0].uid).to.equal(mocks.alice().id);
})
})
@@ -390,7 +390,7 @@ describe('passwordless', function() {
var lastRecord = store.lastRecord();
expect(lastRecord).to.exist;
expect(lastRecord.uid).to.equal(mocks.alice().id.toString());
expect(lastRecord.origin).to.not.eixst;
expect(lastRecord.origin).to.not.exist;
})
})

0 comments on commit dd5f896

Please sign in to comment.