Skip to content

Commit

Permalink
Wil being nitpicky 😉
Browse files Browse the repository at this point in the history
  • Loading branch information
Robdel12 committed Mar 13, 2020
1 parent 5c5ff59 commit 7cc20c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/agent-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe('Integration test', () => {
const domSnapshot = await snapshot(page, 'Canvas elements')
const $ = cheerio.load(domSnapshot)

expect($('[data-percy-canvas-serialized]').length).to.equal(2)
expect($('[data-percy-canvas-serialized]').length).to.have.lengthOf(2)
})

it("doesn't serialize with JS enabled", async () => {
Expand All @@ -254,7 +254,7 @@ describe('Integration test', () => {
const domSnapshot = await snapshot(page, 'Canvas elements -- with JS', { enableJavaScript: true })
const $ = cheerio.load(domSnapshot)

expect($('[data-percy-canvas-serialized]').length).to.equal(0)
expect($('[data-percy-canvas-serialized]').length).to.have.lengthOf(2)
})
})
})
Expand Down

0 comments on commit 7cc20c5

Please sign in to comment.