Skip to content

Instantly share code, notes, and snippets.

@n0nick
Created March 24, 2014 10:27
Show Gist options
  • Save n0nick/9737790 to your computer and use it in GitHub Desktop.
Save n0nick/9737790 to your computer and use it in GitHub Desktop.
describe 'APISessionInterceptor', ->
beforeEach ->
module 'TeamsApp'
it 'appends session data to every API request', ->
inject (APISessionInterceptor, $http, $httpBackend) ->
$httpBackend.when 'GET',
'/test-WAS/something?cookie=chocolate_chip&session_id=12345'
.respond({})
$http.get '/test-WAS/something'
$httpBackend.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment