Skip to content

Commit

Permalink
fix: fix for node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
spence-s committed Nov 15, 2024
1 parent eab7379 commit 8d74fa7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions __tests__/application/respond.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ import statuses from 'statuses'
import assert from 'assert'
import Koa from '../../dist/application.js'
import fs from 'fs'
import path from 'path'
import path from 'node:path'
import { fileURLToPath } from 'node:url'

const pkg = JSON.parse(fs.readFileSync(path.join(import.meta.dirname, '..', '..', 'package.json')))
const __dirname = path.dirname(fileURLToPath(import.meta.url))

const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json')))

describe('app.respond', () => {
describe('when ctx.respond === false', () => {
Expand Down

0 comments on commit 8d74fa7

Please sign in to comment.