Commit 34eec88c authored by Clement Ho's avatar Clement Ho

Fix spec

parent 461d709c
...@@ -35,9 +35,9 @@ ...@@ -35,9 +35,9 @@
external_url_formatted: 'test-url.com' external_url_formatted: 'test-url.com'
}]; }];
spyOn(jQuery, 'getJSON').and.callFake((req, cb) => { spyOn(jQuery, 'getJSON').and.callFake(function(req, cb) {
cb(this.ciEnvironmentsStatusData); cb(this.ciEnvironmentsStatusData);
}); }.bind(this));
}); });
it('should call renderEnvironments when the environments property is set', function() { it('should call renderEnvironments when the environments property is set', function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment