Fixed client side testing on karma/travis with the new FacebookHandler tests.
This commit is contained in:
parent
08dde3623c
commit
4ecbc73c1c
2 changed files with 6 additions and 0 deletions
|
@ -107,6 +107,7 @@ module.exports = TestView = class TestView extends CocoView
|
||||||
# TODO Stubbify more things
|
# TODO Stubbify more things
|
||||||
# * document.location
|
# * document.location
|
||||||
# * firebase
|
# * firebase
|
||||||
|
# * all the services that load in main.html
|
||||||
|
|
||||||
afterEach ->
|
afterEach ->
|
||||||
# TODO Clean up more things
|
# TODO Clean up more things
|
||||||
|
|
|
@ -48,6 +48,11 @@ mockMe =
|
||||||
start_date: "2008-06-01"
|
start_date: "2008-06-01"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
window.FB ?= {
|
||||||
|
api: ->
|
||||||
|
}
|
||||||
|
|
||||||
describe 'lib/FacebookHandler.coffee', ->
|
describe 'lib/FacebookHandler.coffee', ->
|
||||||
it 'on facebook-logged-in, gets data from FB and sends a patch to the server', ->
|
it 'on facebook-logged-in, gets data from FB and sends a patch to the server', ->
|
||||||
me.clear({silent:true})
|
me.clear({silent:true})
|
||||||
|
|
Reference in a new issue