diff --git a/tests/test-helper.js b/tests/test-helper.js index 0382a84..21c59b0 100644 --- a/tests/test-helper.js +++ b/tests/test-helper.js @@ -3,6 +3,14 @@ import config from '../config/environment'; import { setApplication } from '@ember/test-helpers'; 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)); start();