mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 17:33:27 +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() {
|
describe('get', function() {
|
||||||
|
|
||||||
it("returns a promise that resolves to undefined", function() {
|
it("returns a promise that resolves to null", function() {
|
||||||
var done, storeResult;
|
var done, storeResult;
|
||||||
done = storeResult = null;
|
done = storeResult = null;
|
||||||
PreloadStore.get('joker').then(function(result) {
|
PreloadStore.get('joker').then(function(result) {
|
||||||
@ -46,7 +46,7 @@ describe("PreloadStore", function() {
|
|||||||
});
|
});
|
||||||
waitsFor((function() { return done; }), "Promise never resolved", 1000);
|
waitsFor((function() { return done; }), "Promise never resolved", 1000);
|
||||||
runs(function() {
|
runs(function() {
|
||||||
expect(storeResult).toBe(void 0);
|
expect(storeResult).toBe(null);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user