Merge pull request #13892 from tschaub/unused-worker

Remove unused worker
This commit is contained in:
Tim Schaub
2022-07-27 18:10:04 -06:00
committed by GitHub
4 changed files with 0 additions and 89 deletions

View File

@@ -1,29 +0,0 @@
import {VERSION} from '../../../../../src/ol/util.js';
import {create} from '../../../../../src/ol/worker/version.js';
describe('ol/worker/version', function () {
let worker;
beforeEach(function () {
worker = create();
});
afterEach(function () {
if (worker) {
worker.terminate();
}
worker = null;
});
describe('messaging', function () {
it('responds with the version', function (done) {
worker.addEventListener('error', done);
worker.addEventListener('message', function (event) {
expect(event.data).to.equal('version: ' + VERSION);
done();
});
worker.postMessage('test message');
});
});
});