Fixing test
This commit is contained in:
parent
0c47b89f78
commit
990935d07c
1 changed files with 6 additions and 2 deletions
|
|
@ -683,7 +683,10 @@ describe('TPA search page', () => {
|
||||||
expect(result).toEqual(false);
|
expect(result).toEqual(false);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
test.each([[true, true], [false, false]])(
|
test.each([
|
||||||
|
[true, true],
|
||||||
|
[false, false]
|
||||||
|
])(
|
||||||
'returns %p when first instance of multiple matching providerNumbers has isSafeliteShop value %p',
|
'returns %p when first instance of multiple matching providerNumbers has isSafeliteShop value %p',
|
||||||
async (expectedOutput, isSafeliteShop) => {
|
async (expectedOutput, isSafeliteShop) => {
|
||||||
// Arrange
|
// Arrange
|
||||||
|
|
@ -699,7 +702,8 @@ describe('TPA search page', () => {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
const wrapper = shallowMount(tpaSearch, getMountOptions());
|
const wrapper = shallowMount(tpaSearch, getMountOptions());
|
||||||
await wrapper.setData({ selectedProviderNumber, providers });
|
await wrapper.setData({ providers });
|
||||||
|
await wrapper.setData({ selectedProviderNumber });
|
||||||
|
|
||||||
// Act
|
// Act
|
||||||
const result = wrapper.vm.selectedProviderIsSafeliteShop;
|
const result = wrapper.vm.selectedProviderIsSafeliteShop;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue