Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 11, 2023
1 parent a417418 commit d04800c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/validation_error.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import { test } from '@japa/runner'
import { fileURLToPath } from 'node:url'
import { ValidationError } from '../../src/errors/validation_error.js'

test.group('Exception', () => {
Expand All @@ -26,7 +27,7 @@ test.group('Exception', () => {
try {
throw new ValidationError([{ message: 'Field is required' }])
} catch (error) {
assert.match(error.stack.split('\n')[1], new RegExp(import.meta.url))
assert.match(error.stack.split('\n')[1], new RegExp(fileURLToPath(import.meta.url)))
}
})

Expand Down

0 comments on commit d04800c

Please sign in to comment.