Skip to content

Commit

Permalink
test: make assertion more resillient on older versions of node
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 21, 2024
1 parent 90d99a4 commit 4b6adb1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/dumper/dumper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
*/

import { test } from '@japa/runner'
import { fileURLToPath } from 'node:url'
import { AppFactory } from '@adonisjs/application/factories'
import { Dumper } from '../../modules/dumper/dumper.js'
import { E_DUMP_DIE_EXCEPTION } from '../../modules/dumper/errors.js'
import { HttpContextFactory } from '@adonisjs/http-server/factories'

import { Dumper } from '../../modules/dumper/dumper.js'
import { AceFactory } from '../../factories/core/ace.js'
import { E_DUMP_DIE_EXCEPTION } from '../../modules/dumper/errors.js'

test.group('Dumper', () => {
test('dump and die', ({ fs }) => {
Expand Down Expand Up @@ -77,8 +79,8 @@ test.group('Dumper', () => {
{
title: 'DUMP DIE',
source: {
location: import.meta.filename,
line: 68,
location: fileURLToPath(new URL('', import.meta.url)),
line: 70,
},
}
)
Expand Down

0 comments on commit 4b6adb1

Please sign in to comment.