We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12a27f3 commit 33ef4adCopy full SHA for 33ef4ad
tests/processContext.tests.js
@@ -1,6 +1,6 @@
1
-const chai = require('chai');
2
-const chaiAsPromised = require('chai-as-promised').default;
3
-const { readFile } = require('../processContext.js');
+import * as chai from 'chai';
+import chaiAsPromised from 'chai-as-promised';
+import { readFile } from '../processContext.js';
4
5
chai.use(chaiAsPromised);
6
const { expect } = chai;
tests/util.tests.js
@@ -1,5 +1,5 @@
-const { expect } = require('chai');
-const { checkEnvAPIKey } = require('../util.js');
+import { expect } from 'chai';
+import { checkEnvAPIKey } from '../util.js';
describe('util tests', () => {
it('should throw an error for invalid environment variable value', () => {
0 commit comments