mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:51:08 +08:00
Fixes broken jasmine test - PreloadStore now returns null
This commit is contained in:
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user