Skip to content

Commit

Permalink
test(events): update handling events (from constructor)
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Aug 24, 2019
1 parent 3443952 commit b719bc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

window.passport.fetchLogin('example@gmail.com', '123444444')

window.passport.on('logout', () => {
EcomPassport.on('logout', () => {
document.write('Deslougadah')
console.info('Deslougadah')
})

window.passport.on('login', (user) => {
EcomPassport.on('login', (user) => {
document.write('Lougadah')
document.write(JSON.stringify(user))
console.info('Lougadah', user)
Expand Down

0 comments on commit b719bc0

Please sign in to comment.