Skip to content

Commit 56ac4b4

Browse files
common js solution
1 parent 43111d8 commit 56ac4b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

testing/unittest.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
const { expect } = await import('chai')
21
const sinon = require('sinon')
32
const { doInitFilter, doFilter } = require('../src/pytest_html/scripts/filter.js')
43
const { doInitSort, doSort } = require('../src/pytest_html/scripts/sort.js')
54
const dataModule = require('../src/pytest_html/scripts/datamanager.js')
65
const storageModule = require('../src/pytest_html/scripts/storage.js')
76

7+
let expect
8+
(async () => {
9+
({ expect } = await import('chai'))
10+
})()
811

912
const setTestData = () => {
1013
const jsonData = {

0 commit comments

Comments
 (0)