[Build] Inject window to satisfy JSHint

This commit is contained in:
Victor Woeltjen
2016-03-04 11:08:20 -08:00
parent 6289fe333b
commit f380e43219
3 changed files with 4 additions and 7 deletions

View File

@@ -49,14 +49,11 @@ define(
mockQ.when.andCallFake(mockPromise);
provider = new LocalStoragePersistenceProvider(
{ localStorage: testLocalStorage },
mockQ,
testSpace,
testLocalStorage
);
// White-boxy: Can't effectively mock window.localStorage,
// so override the provider's local reference to it.
provider.localStorage = testLocalStorage;
});
it("reports available spaces", function () {