Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Aug 30, 2021
1 parent 6cb1b38 commit ee403b0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/integration/production/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,13 @@ describe('Production Usage', () => {
it('should set title by routeChangeComplete event', async () => {
const browser = await webdriver(appPort, '/')
await browser.eval(function setup() {
window.next.router.events.on('routeChangeComplete', function handler(
url
) {
window.routeChangeTitle = document.title
window.routeChangeUrl = url
})
window.next.router.events.on(
'routeChangeComplete',
function handler(url) {
window.routeChangeTitle = document.title
window.routeChangeUrl = url
}
)
window.next.router.push('/with-title')
})
await browser.waitForElementByCss('#with-title')
Expand Down

0 comments on commit ee403b0

Please sign in to comment.