Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx committed Jan 10, 2024
1 parent 3961bc2 commit 03b2913
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/setupTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,17 @@ Object.defineProperty(window, 'matchMedia', {
dispatchEvent: jest.fn(),
})),
});

// Object.defineProperty(window, 'MathJax', {
// Hub: {
// Queue: jest.fn(),
// Config: jest.fn(),
// },
// });

global.MathJax = {
Hub: {
Queue: jest.fn(),
Config: jest.fn(),
},
};

Check failure on line 124 in src/setupTest.js

View workflow job for this annotation

GitHub Actions / test

Newline required at end of file but not found

0 comments on commit 03b2913

Please sign in to comment.