mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Removed jquery
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
const helpers = require('./support/helpers');
|
||||
|
||||
beforeAll(() => {
|
||||
// TODO: remove this when tests for sticky JS are written
|
||||
require('../../app/assets/javascripts/stick-to-window-when-scrolling.js');
|
||||
|
||||
require('../../app/assets/javascripts/collapsibleCheckboxes.js');
|
||||
});
|
||||
|
||||
|
||||
@@ -100,11 +100,6 @@ describe('copy to clipboard', () => {
|
||||
|
||||
});
|
||||
|
||||
test("It should tell any sticky JS present the page has changed", () => {
|
||||
|
||||
expect(window.NotifyModules.stickAtBottomWhenScrolling.recalculate).toHaveBeenCalled();
|
||||
|
||||
});
|
||||
|
||||
test("It should display the value", () => {
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,6 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
// Set up jQuery
|
||||
global.$ = global.jQuery = require('jquery');
|
||||
|
||||
// tests/jest.setup.js
|
||||
global.io = jest.fn().mockReturnValue({
|
||||
|
||||
@@ -3,6 +3,3 @@ const path = require('path');
|
||||
|
||||
// Fill in the gaps where JSDOM doesn't quite match real browsers
|
||||
require('./polyfills.js');
|
||||
|
||||
// Make jQuery available everywhere
|
||||
global.$ = global.jQuery = require('jquery');
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
window.jQuery = null;
|
||||
$ = null;
|
||||
|
||||
delete window.USWDS;
|
||||
|
||||
jest.restoreAllMocks();
|
||||
|
||||
Reference in New Issue
Block a user