decide.nolog.cz/tests/test-helper.ts
Jeldrik Hanschke f0cff27e99
Convert to TypeScript (#713)
* setup typescript

* covert to TypeScript
2023-10-29 19:16:33 +01:00

23 lines
617 B
TypeScript

import Application from 'croodle/app';
import config from 'croodle/config/environment';
import * as QUnit from 'qunit';
import { setApplication } from '@ember/test-helpers';
import { setup } from 'qunit-dom';
import { start } from 'ember-qunit';
document.addEventListener(
'securitypolicyviolation',
function ({ blockedURI, violatedDirective }) {
throw new Error(
'Content-Security-Policy violation detected: ' +
`Violated directive: ${violatedDirective}. ` +
`Blocked URI: ${blockedURI}`,
);
},
);
setApplication(Application.create(config.APP));
setup(QUnit.assert);
start();