Add localforage, basic cache service

This commit is contained in:
2020-05-27 12:59:37 +02:00
parent c57d4162d7
commit f996c89dfe
5 changed files with 69 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Service | browser-cache', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
let service = this.owner.lookup('service:browser-cache');
assert.ok(service);
});
test('creates kredits data stores', function(assert) {
let cache = this.owner.lookup('service:browser-cache');
assert.equal(cache.contributors._config.name, "kredits:contributors");
assert.equal(cache.contributions._config.name, "kredits:contributions");
});
});