Skip to content

Commit

Permalink
#209: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-may committed Oct 8, 2024
1 parent 727a2b6 commit 59c4ce4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions skills-client-js/test/display/SkillsDisplayJS.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import axios from 'axios';

import SkillsDisplayJS from '../../src/display/SkillsDisplayJS';
import ErrorPageUtils from '../../src/display/ErrorPageUtils';
import SkillsConfiguration from '../../src/config/SkillsConfiguration';

jest.mock('../../src/display/ErrorPageUtils.js');
jest.mock('postmate');
Expand Down Expand Up @@ -80,6 +81,7 @@ describe('SkillsDisplayJS', () => {
let realDocument;

beforeEach(() => {
SkillsConfiguration.enabled = true
realDocument = global.document;
global.document.querySelector = jest.fn();
});
Expand Down

0 comments on commit 59c4ce4

Please sign in to comment.