Skip to content

Commit

Permalink
test(client): fix the unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Dec 24, 2013
1 parent a8b250c commit 51f11a3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/client/karma.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ describe('Karma', function() {


it('should remove reference to start even after syntax error', function() {
var ADAPTER_START_FN = function() {};

k.start = ADAPTER_START_FN;
k.error('syntax error', '/some/file.js', 11);
k.loaded();
expect(k.start).toBeFalsy();
expect(k.start).not.toBe(ADAPTER_START_FN);

k.start = function() {};
k.start = ADAPTER_START_FN;
k.loaded();
expect(k.start).toBeFalsy();
expect(k.start).not.toBe(ADAPTER_START_FN);
});


Expand Down

0 comments on commit 51f11a3

Please sign in to comment.