Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev committed Apr 27, 2024
1 parent caa5897 commit 112a5d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/internal/modules/esm/assert.js
Expand Up @@ -2,6 +2,7 @@

const {
ArrayPrototypeFilter,
ArrayPrototypeFlat,
ArrayPrototypeIncludes,
ObjectKeys,
ObjectPrototypeHasOwnProperty,
Expand Down Expand Up @@ -39,7 +40,7 @@ const formatTypeMap = {
* @type {Array<string, string>}
*/
const supportedAssertionTypes = ArrayPrototypeFilter(
ObjectValues(formatTypeMap),
ArrayPrototypeFlat(ObjectValues(formatTypeMap)),
(type) => type !== kImplicitAssertType);


Expand Down
4 changes: 2 additions & 2 deletions test/es-module/test-import-jsonc.js
@@ -1,6 +1,6 @@
'use strict';

const common = require('../common');
require('../common');
const assert = require('assert');

const jsonFiles = [
Expand All @@ -19,4 +19,4 @@ for (const [file, [throwWithTypeJSON, throwWithTypeJSONC]] of jsonFiles) {
assert[throwWithTypeJSONC ? 'rejects' : 'doesNotReject'](async () => {
await import(file, { with: { type: 'jsonc' } });
});
}
}

0 comments on commit 112a5d6

Please sign in to comment.