Files
kredits-web/tests/unit/services/browser-cache-test.js
T
basti e7c9620bbe Add network namespace for browser cache
We want to be able to cache data from multiple networks side-by-side,
without them interfering with each other.
2020-05-28 11:53:19 +02:00

18 lines
587 B
JavaScript

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:rinkeby:contributors");
assert.equal(cache.contributions._config.name, "kredits:rinkeby:contributions");
});
});