Fixed client side testing on karma/travis with the new FacebookHandler tests.

This commit is contained in:
Scott Erickson 2014-06-11 13:43:07 -07:00
parent 08dde3623c
commit 4ecbc73c1c
2 changed files with 6 additions and 0 deletions

View file

@ -107,6 +107,7 @@ module.exports = TestView = class TestView extends CocoView
# TODO Stubbify more things
# * document.location
# * firebase
# * all the services that load in main.html
afterEach ->
# TODO Clean up more things

View file

@ -48,6 +48,11 @@ mockMe =
start_date: "2008-06-01"
}
]
window.FB ?= {
api: ->
}
describe 'lib/FacebookHandler.coffee', ->
it 'on facebook-logged-in, gets data from FB and sends a patch to the server', ->
me.clear({silent:true})