Skip to content

Commit 349e56d

Browse files
gauravclaude
andcommitted
Fix remaining Biome lint errors in test_phyx2ontology.js.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b394ede commit 349e56d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_phyx2ontology.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
const BASE_DIR = 'phyx/';
66

77
// Node libraries.
8-
const ChildProcess = require('child_process');
9-
const fs = require('fs');
8+
const ChildProcess = require('node:child_process');
9+
const fs = require('node:fs');
1010

1111
// Javascript libraries.
1212
const tmp = require('tmp');
@@ -26,15 +26,15 @@ describe('Executing phyx2ontology.js on all current Phyx files', function () {
2626
shell: true,
2727
});
2828

29-
it('should execute successfully', function () {
29+
it('should execute successfully', () => {
3030
assert.isNull(child.signal, `Terminated because of signal ${child.signal}`);
3131
assert.equal(child.status, 0, 'Exit value should be zero');
3232
});
3333

34-
it('should produce valid JSON output', function () {
34+
it('should produce valid JSON output', () => {
3535
const jsonContent = fs.readFileSync(tmpfilename, { encoding: 'utf8' });
3636
let json = [];
37-
assert.doesNotThrow(function () {
37+
assert.doesNotThrow(() => {
3838
json = JSON.parse(jsonContent);
3939
}, SyntaxError);
4040
assert.isNotEmpty(json, 'Produced JSON should not be empty');

0 commit comments

Comments
 (0)