16 строки
546 B
JavaScript
Executable File
16 строки
546 B
JavaScript
Executable File
|
|
// This is the set of the SW tests. They will be run inside a SW environment.
|
|
// Karma publishes the static content from /base/ path.
|
|
var SW_TESTS = [
|
|
'/base/tests/service-worker/test.js'
|
|
];
|
|
|
|
// Import chai and sinon into the ServiceWorkerGlobalScope
|
|
importScripts('/base/node_modules/chai/chai.js');
|
|
importScripts('/base/node_modules/sinon/pkg/sinon.js');
|
|
importScripts('/base/tests/service-worker/localforage.mock.js');
|
|
|
|
// Setup mocha to be bdd and make chai.expect globally available
|
|
self.assert = chai.assert;
|
|
mocha.setup({ ui: 'bdd' });
|