Logo
Explore Help
Sign In
darkhelm/notifications-admin
1
0
Fork 0
You've already forked notifications-admin
mirror of https://github.com/GSA/notifications-admin.git synced 2026-02-11 22:14:06 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
4bae4eec6cd85f10c1a22bd2d7645ad8e02b71e9
notifications-admin/tests/javascripts/support/setup.js

10 lines
211 B
JavaScript
Raw Normal View History

Add JS tests for analytics & cookies JS Includes: - tests for the analytics interface ported from GOVUK Frontend Toolkit - tests for the cookie banner that appears on all pages except the cookies page - tests for the cookies page JS - tests for the hasConsentFor function - adding a deleteCookie helper to remove cookies during tests - polyfill for insertAdjacentText The last one is because JSDOM doesn't support insertAdjacentText but our target browsers do. This polyfill also includes one for insertAdjacentHTML.
2019-12-31 16:49:52 +00:00
// Polyfill holes in JSDOM
require('./polyfills.js');
Move setup/teardown out of tests
2019-05-21 10:56:38 +01:00
// set up jQuery
window.jQuery = require('jquery');
$ = window.jQuery;
// load module code
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 4338ms Template: 26ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API