jest-issue | fix unit tests
This commit is contained in:
parent
f4845d4afe
commit
b48e17b6ed
1 changed files with 2 additions and 4 deletions
|
|
@ -95,12 +95,11 @@ describe("glass-part-question.vue", () => {
|
|||
});
|
||||
|
||||
//Act
|
||||
await wrapper.vm.$nextTick();
|
||||
const listCard = await wrapper.findComponent({
|
||||
name: "buttonQuestion",
|
||||
});
|
||||
|
||||
await wrapper.setData({ selectedTint: "Green Tint" });
|
||||
wrapper.setData({ selectedTint: "Green Tint" });
|
||||
// to trigger the computed setter
|
||||
wrapper.vm.selectedPartNumber = "DB12209GTYN";
|
||||
|
||||
|
|
@ -253,8 +252,7 @@ describe("glass-part-question.vue", () => {
|
|||
});
|
||||
|
||||
// Act
|
||||
await wrapper.setData({ selectedTint: selectedTint });
|
||||
|
||||
wrapper.setData({ selectedTint: selectedTint });
|
||||
// Assert
|
||||
expect(expectedResults).toEqual(wrapper.vm.partsForSelectedTint);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue