Created
November 12, 2015 17:25
-
-
Save azangru/ba35a834946feb3f4975 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Checkin Repository', () => { | |
let checkinRepository, httpBackend; | |
beforeEach(() => { | |
module('app'); | |
}); | |
beforeEach(inject(($httpBackend, checkinDeviceRepository) => { | |
httpBackend = $httpBackend; | |
checkinRepository = checkinDeviceRepository; | |
})); | |
afterEach(() => { | |
httpBackend.verifyNoOutstandingExpectation(); | |
httpBackend.verifyNoOutstandingRequest(); | |
}); | |
it('should send requests to checkin/devices', () => { | |
httpBackend.expectPOST('/qapi/checkin/devices/list'); | |
checkinRepository.findAll(); | |
httpBackend.flush(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment