Skip to content

Commit

Permalink
additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonopono123 committed Sep 6, 2024
1 parent 0d3c643 commit 5cdcfe2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/server/test/unit/utils/qualificationsUtils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ describe('qualificationsUtils', () => {

expect(returnedValue).to.deep.equal('This is a qual (level 4)');
});

it('should return the title with the level in brackets when the qual already has brackets', () => {
const title = 'This is a qual (ABC)';
const level = '6';

const returnedValue = formatQualificationTitle(title, level);

expect(returnedValue).to.deep.equal('This is a qual (ABC, level 6)');
});
})
});
});

0 comments on commit 5cdcfe2

Please sign in to comment.