Skip to content

Commit

Permalink
test(intg): ensure prefixed spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Dec 20, 2022
1 parent 6942087 commit d6ffe08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/CalculatorContainer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ describe("Component: CalculatorContainer", () => {
const operationalBtns = wrapper.findAll(".operational-button")
const [additionBtn] = operationalBtns.filter(btn => btn.text() === "+")
await additionBtn.trigger("click")
expect(calculatorScreen.value).toEqual("1+")
expect(calculatorScreen.value).toEqual("1 +")

// click digit "1" button again
await digital1Btn.trigger("click")
expect(calculatorScreen.value).toEqual("1+1")
expect(calculatorScreen.value).toEqual("1 + 1")

// Find the Equal button and click it
const evaluationBtns = wrapper.findAll(".evaluation-button")
const [equalBtn] = evaluationBtns.filter(btn => btn.text() === "=")
await equalBtn.trigger("click")
expect(calculatorScreen.value).toEqual("1+1=")
expect(calculatorScreen.value).toEqual("1 + 1 =")
})
})

0 comments on commit d6ffe08

Please sign in to comment.