Fix frontend test setup file (#11623)
This commit is contained in:
parent
c345ff95f7
commit
779551916a
2 changed files with 1 additions and 4 deletions
|
|
@ -53,7 +53,6 @@ describe('<ReadingList />', () => {
|
|||
afterEach(() => {
|
||||
delete global.fetch;
|
||||
delete global.getCsrfToken;
|
||||
delete global.filterXSS;
|
||||
});
|
||||
|
||||
it('should have no a11y violations', async () => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-env node */
|
||||
import 'jest-axe/extend-expect';
|
||||
import filterXss from './app/assets/javascripts/lib/xss';
|
||||
|
||||
global.filterXss = filterXss;
|
||||
import './app/assets/javascripts/lib/xss';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue