Skip to content

Commit

Permalink
Fix event test
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnerd committed Feb 2, 2019
1 parent b751f29 commit e89283c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/redirects.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,11 @@ lab.experiment('hapi-redirect', () => {
},
}
});
server.events.on('redirect', (redirectInfo) => {
Code.expect(redirectInfo).to.equal('/it/works');

server.events.on('redirect', (data) => {
Code.expect(data.fullRedirectLocation).to.equal('/it/works');
});

await server.start();
const result = await server.inject({
method: 'get',
Expand Down

0 comments on commit e89283c

Please sign in to comment.