Karma test tweaks

* Make sure we only get one js-sdk (and update runtime config to match)
* Don't verifyNoOutstandingRequests (since it is hard to be certain which we
  will get, and makes the tests too dependent on implementation-specifics).
* Disable color for npm test, to avoid confusing Jenkins
This commit is contained in:
Richard van der Hoff 2016-04-13 17:41:23 +01:00
parent 181a6a61ff
commit bf31d6d5fa
4 changed files with 7 additions and 5 deletions

View file

@ -65,7 +65,6 @@ describe('joining a room', function () {
parentDiv.remove();
parentDiv = null;
}
httpBackend.verifyNoOutstandingRequests();
});
it('should not get stuck at a spinner', function(done) {
@ -74,9 +73,6 @@ describe('joining a room', function () {
httpBackend.when('PUT', '/presence/'+encodeURIComponent(USER_ID)+'/status')
.respond(200, {});
if (test_utils.browserSupportsWebRTC()) {
httpBackend.when('GET', '/voip/turnServer').respond(200, {});
}
httpBackend.when('GET', '/pushrules').respond(200, {});
httpBackend.when('POST', '/filter').respond(200, { filter_id: 'fid' });
httpBackend.when('GET', '/sync').respond(200, {});