Skip to content

Commit

Permalink
Fix test name and add config assertion check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed Nov 8, 2024
1 parent 4777ea6 commit 3e5b20d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/mocha/20-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ describe('Tokens', function() {
record.should.include.keys(['meta', 'pairwiseToken']);
record.pairwiseToken.value.should.be.a('Uint8Array');
});
it('should not resolve pairwise token when not enabled by configuration',
it('should resolve pairwise token when enabled by configuration',
async function() {
const dateOfBirth = '2000-05-01';
const expires = '2021-05-01';
Expand Down Expand Up @@ -1025,6 +1025,8 @@ describe('Tokens', function() {
ttl: 1209600000
});

bedrock.config.tokenization.ensurePairwiseTokenValueIndex.should.be.true;

const requester = 'requester';
const record = await tokens.upsertPairwiseToken({internalId, requester});
should.exist(record);
Expand Down

0 comments on commit 3e5b20d

Please sign in to comment.