Skip to content

Commit 33ef4ad

Browse files
committed
Update tests
1 parent 12a27f3 commit 33ef4ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/processContext.tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const chai = require('chai');
2-
const chaiAsPromised = require('chai-as-promised').default;
3-
const { readFile } = require('../processContext.js');
1+
import * as chai from 'chai';
2+
import chaiAsPromised from 'chai-as-promised';
3+
import { readFile } from '../processContext.js';
44

55
chai.use(chaiAsPromised);
66
const { expect } = chai;

tests/util.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const { expect } = require('chai');
2-
const { checkEnvAPIKey } = require('../util.js');
1+
import { expect } from 'chai';
2+
import { checkEnvAPIKey } from '../util.js';
33

44
describe('util tests', () => {
55
it('should throw an error for invalid environment variable value', () => {

0 commit comments

Comments
 (0)