diff --git a/spec/javascripts/preload_store_spec.js b/spec/javascripts/preload_store_spec.js index 5d95ade3890..baa2be90e29 100644 --- a/spec/javascripts/preload_store_spec.js +++ b/spec/javascripts/preload_store_spec.js @@ -37,7 +37,7 @@ describe("PreloadStore", function() { describe('get', function() { - it("returns a promise that resolves to undefined", function() { + it("returns a promise that resolves to null", function() { var done, storeResult; done = storeResult = null; PreloadStore.get('joker').then(function(result) { @@ -46,7 +46,7 @@ describe("PreloadStore", function() { }); waitsFor((function() { return done; }), "Promise never resolved", 1000); runs(function() { - expect(storeResult).toBe(void 0); + expect(storeResult).toBe(null); }); });