// assert.rejects was not happy to handle this for some reason
try {
await authenticator.createIdentifier(dbCtx, identifier, credential);
assert.fail('no expecte exception');
} catch (e) {
assert.deepStrictEqual(e, expected);
// assert.rejects was not happy to handle this for some reason
try {
await authenticator.createIdentifier(dbCtx, identifier, credential);
assert.fail('no expecte exception');
} catch (e) {
assert.deepStrictEqual(e, expected);