Fix frontend test setup file (#11623)

This commit is contained in:
Nick Taylor 2020-11-25 15:27:06 -05:00 committed by GitHub
parent c345ff95f7
commit 779551916a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -53,7 +53,6 @@ describe('<ReadingList />', () => {
afterEach(() => {
delete global.fetch;
delete global.getCsrfToken;
delete global.filterXSS;
});
it('should have no a11y violations', async () => {

View file

@ -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';