From 97ba6f32c754dad4e7ff610b1bec5df56b74cc06 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 8 Mar 2013 15:10:57 -0500 Subject: [PATCH] Fixes broken jasmine test - PreloadStore now returns null --- spec/javascripts/preload_store_spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); });