2020-10-18 22:38:37 +02:00
|
|
|
import Application from 'croodle/app';
|
|
|
|
import config from 'croodle/config/environment';
|
2023-10-15 20:37:03 +02:00
|
|
|
import * as QUnit from 'qunit';
|
2018-12-29 01:27:37 +01:00
|
|
|
import { setApplication } from '@ember/test-helpers';
|
2023-10-15 20:37:03 +02:00
|
|
|
import { setup } from 'qunit-dom';
|
2018-12-29 01:27:37 +01:00
|
|
|
import { start } from 'ember-qunit';
|
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
document.addEventListener(
|
|
|
|
'securitypolicyviolation',
|
|
|
|
function ({ blockedURI, violatedDirective }) {
|
|
|
|
throw new Error(
|
|
|
|
'Content-Security-Policy violation detected: ' +
|
|
|
|
`Violated directive: ${violatedDirective}. ` +
|
2023-10-17 10:44:45 +02:00
|
|
|
`Blocked URI: ${blockedURI}`,
|
2023-10-15 20:37:03 +02:00
|
|
|
);
|
2023-10-17 10:44:45 +02:00
|
|
|
},
|
2023-10-15 20:37:03 +02:00
|
|
|
);
|
2019-02-23 22:43:53 +01:00
|
|
|
|
2018-12-29 01:27:37 +01:00
|
|
|
setApplication(Application.create(config.APP));
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2023-10-15 20:37:03 +02:00
|
|
|
setup(QUnit.assert);
|
|
|
|
|
2017-07-29 15:00:11 +02:00
|
|
|
start();
|