mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Fixes broken jasmine test - PreloadStore now returns null
This commit is contained in:
parent
d1d4530efd
commit
97ba6f32c7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue