Skip to content

Instantly share code, notes, and snippets.

@towski
Created April 2, 2013 21:27
Show Gist options
  • Save towski/5296360 to your computer and use it in GitHub Desktop.
Save towski/5296360 to your computer and use it in GitHub Desktop.
this.addFutureAction('check username', function($window, $document, done) {
console.log($window.active_user.username())
expect($window.active_user.username()).toBe("Guest")
done()
})
@towski
Copy link
Author

towski commented Apr 2, 2013

var future = this.addFutureAction('browser href', function($window, $document, done) {
done(null, $window.active_user.username())
})
expect(future).toBe('Guests')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment