mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-14 17:51:01 +00:00
JS type additions for node:test environment (#3042)
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user