INSR-10447: Fix some unit test nitpicks
This commit is contained in:
parent
d245d50958
commit
f0f17328c4
1 changed files with 4 additions and 4 deletions
|
|
@ -43,10 +43,10 @@ describe('coverage-helper.js', () => {
|
|||
});
|
||||
});
|
||||
|
||||
test('Sets accountUserId when parent account is 900040', async () => {
|
||||
test.each([900040, '900040'])('Sets accountUserId when parent account is %s', async (parentAccountNumber) => {
|
||||
// Arrange
|
||||
const payload = {};
|
||||
mockStore.order.parentAccountNumber = 900040;
|
||||
mockStore.order.parentAccountNumber = parentAccountNumber;
|
||||
mockStore.order.insuranceCoverage.coverageType = coverageType.ITAC;
|
||||
|
||||
// Act
|
||||
|
|
@ -70,10 +70,10 @@ describe('coverage-helper.js', () => {
|
|||
expect(payload.additionalInfo).toBeUndefined();
|
||||
});
|
||||
|
||||
test('Does not set accountUserId when parent account is not 900040', async () => {
|
||||
test.each([123456, '123456'])('Does not set accountUserId when parent account is not 900040 (parentAccountNumber=%s)', async (parentAccountNumber) => {
|
||||
// Arrange
|
||||
const payload = {};
|
||||
mockStore.order.parentAccountNumber = 123456;
|
||||
mockStore.order.parentAccountNumber = parentAccountNumber;
|
||||
mockStore.order.insuranceCoverage.coverageType = coverageType.ITAC;
|
||||
|
||||
// Act
|
||||
|
|
|
|||
Loading…
Reference in a new issue