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-06 11:23:48 -05:00
Code Issues Packages Projects Releases Wiki Activity
Files
75ce12f5dab1edc884345aaeeab0aa6e4c83bc8a
notifications-admin/tests/javascripts/support/setup.js

12 lines
260 B
JavaScript
Raw Normal View History

Writing tests for chartDashboard.js
2024-06-05 11:25:15 -04:00
const fs = require('fs');
const path = require('path');
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');
Writing tests for chartDashboard.js
2024-06-05 11:25:15 -04:00
// Set up jQuery
global.$ = global.jQuery = require('jquery');
Move setup/teardown out of tests
2019-05-21 10:56:38 +01:00
Writing tests for chartDashboard.js
2024-06-05 11:25:15 -04:00
// Load module code
Move setup/teardown out of tests
2019-05-21 10:56:38 +01:00
require('govuk_frontend_toolkit/javascripts/govuk/modules.js');
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.0 Page: 918ms Template: 12ms
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