JS type additions for node:test environment (#3042)

This commit is contained in:
Jaco
2023-02-25 12:01:16 +02:00
committed by GitHub
parent 70f96f40f6
commit 02a78d3b2e
6 changed files with 35 additions and 597 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
// Copyright 2020-2023 @polkadot/phishing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'fs';
// eslint-disable-next-line spaced-comment
/// <reference types="@polkadot/dev/node/test/node" />
import fs from 'node:fs';
import { decodeAddress } from '@polkadot/util-crypto';
+4 -1
View File
@@ -1,7 +1,10 @@
// Copyright 2020-2023 @polkadot/phishing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'fs';
// eslint-disable-next-line spaced-comment
/// <reference types="@polkadot/dev/node/test/node" />
import fs from 'node:fs';
import { decodeAddress } from '@polkadot/util-crypto';
+5 -2
View File
@@ -1,9 +1,12 @@
// Copyright 2020-2023 @polkadot/phishing authors & contributors
// SPDX-License-Identifier: Apache-2.0
import fs from 'fs';
// eslint-disable-next-line spaced-comment
/// <reference types="@polkadot/dev/node/test/node" />
import { load as yamlParse } from 'js-yaml';
import process from 'process';
import fs from 'node:fs';
import process from 'node:process';
import { fetchJson, fetchText } from './fetch';
+3
View File
@@ -1,6 +1,9 @@
// Copyright 2020-2023 @polkadot/phishing authors & contributors
// SPDX-License-Identifier: Apache-2.0
// eslint-disable-next-line spaced-comment
/// <reference types="@polkadot/dev/node/test/node" />
import { checkAddress, checkIfDenied } from '.';
describe('checkIfDenied', (): void => {