Skip to content

Commit

Permalink
chore: fix error print in test
Browse files Browse the repository at this point in the history
In PR #1934 we got this in the logs.
  • Loading branch information
tujoworker committed Jan 29, 2023
1 parent a3b758c commit fd93388
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ if (isCI) {
})

it('has to have valid core css', () => {
global.console.error = jest.fn()
const css = loadScss(null, { data: global.core[0] })
expect(/^Error/.test(css)).toBe(false)
expect(global.console.error).toBeCalled()
})

it('has to have correct core path to fonts', () => {
Expand Down

0 comments on commit fd93388

Please sign in to comment.