Skip to content

Commit 6ea9f69

Browse files
committed
test: try dynamic import of chai
1 parent 66080fc commit 6ea9f69

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/github.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const { axios, auth, getResourceInfo, install, remove } = require('./util.js')
2-
const chai = require('chai')
1+
const { axios, auth, getResourceInfo } = require('./util.js')
2+
const chai = await import('chai')
33
const expect = chai.expect
44

55
describe('Github', function () {

test/gitlab.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { axios, auth, getResourceInfo } = require('./util.js')
2-
const chai = require('chai')
2+
const chai = await import('chai')
33
const expect = chai.expect
44

55
describe('Gitlab', function () {

test/tuttle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { auth, axios, putResource, install, remove } = require('./util.js')
22
const { readFile } = require('node:fs/promises')
3-
const chai = require('chai')
3+
const chai = await import('chai')
44
const expect = chai.expect
55

66
before(async () => {

0 commit comments

Comments
 (0)