Skip to content

Commit

Permalink
All tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
davedoesdev committed Dec 31, 2023
1 parent 92cc236 commit 310a391
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ describe('login', function () {
const cred = user.credentials[0];
expect(b64url(cred.ID)).to.equal(id);
expect(cred.AttestationType).to.equal('none');
expect(cred.Authenticator.SignCount).to.equal(1);
expect(cred.Authenticator.SignCount).to.equal(2);
expect(cred.Authenticator.CloneWarning).to.be.false;
});

Expand Down Expand Up @@ -649,7 +649,7 @@ describe('login', function () {
const cred = user.credentials[0];
expect(b64url(cred.ID)).to.equal(id);
expect(cred.AttestationType).to.equal('none');
expect(cred.Authenticator.SignCount).to.equal(4);
expect(cred.Authenticator.SignCount).to.equal(2);
expect(cred.Authenticator.CloneWarning).to.be.false;
});

Expand All @@ -670,7 +670,7 @@ describe('login', function () {
} catch (e) {
ex = e;
}
expect(ex.message).to.equal('Login POST failed with 400 {"statusCode":400,"error":"Bad Request","message":"Error validating the assertion signature: Signature invalid or not provided\\n"}');
expect(ex.message).to.equal('Login POST failed with 400 {"statusCode":400,"error":"Bad Request","message":"Error validating the assertion signature: Signature invalid or not provided"}');
await login(username);
});
});
Expand All @@ -683,7 +683,8 @@ describe('init', function () {
} catch (e) {
ex = e;
}
expect(ex.message).to.equal('Configuration error: Missing RPDisplayName');
console.log("FOO", ex.message);
expect(ex.message).to.equal("error occurred validating the configuration: the field 'RPDisplayName' must be configured but it is empty");
// Note: also tests exit without webauthn being made
});

Expand Down

0 comments on commit 310a391

Please sign in to comment.