Skip to content

Commit 42c6168

Browse files
committed
chore(bitgo): update import = to ES6 imports
TICKET: WP-5182
1 parent f5bb90d commit 42c6168

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+58
-58
lines changed

modules/bitgo/test/ecdh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as utxolib from '@bitgo/utxo-lib';
88

99
import { getSharedSecret, signMessageWithDerivedEcdhKey, verifyEcdhSignature } from '@bitgo/sdk-core';
1010
import { TestBitGo } from '@bitgo/sdk-test';
11-
import * as assert from 'assert';
11+
import assert from 'assert';
1212
import { BitGo } from '../src/bitgo';
1313

1414
describe('ECDH utils', () => {

modules/bitgo/test/integration/wallets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const TestBitGo = require('../lib/test_bitgo');
1414
import * as utxolib from '@bitgo/utxo-lib';
1515
import { getAddressP2PKH, getNetwork } from '../../src/bitcoin';
1616
import { common } from '@bitgo/sdk-core';
17-
import * as nock from 'nock';
17+
import nock from 'nock';
1818

1919
const TEST_WALLET_LABEL = 'wallet management test';
2020

modules/bitgo/test/unit/bitgo.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
//
44

55
import * as crypto from 'crypto';
6-
import * as nock from 'nock';
6+
import nock from 'nock';
77
import * as should from 'should';
8-
import assert = require('assert');
8+
import assert from 'assert';
99

1010
import { common, generateGPGKeyPair } from '@bitgo/sdk-core';
1111
import { bip32, ECPair } from '@bitgo/utxo-lib';

modules/bitgo/test/unit/keychains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44

55
import * as _ from 'lodash';
6-
import * as nock from 'nock';
6+
import nock from 'nock';
77
import 'should';
88

99
import { common } from '@bitgo/sdk-core';

modules/bitgo/test/v2/integration/coins/eth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as should from 'should';
22
import 'should-http';
33

44
import { TestBitGo } from '../../../lib/test_bitgo';
5-
import * as nock from 'nock';
5+
import nock from 'nock';
66
nock.restore();
77

88
describe('ETH:', function () {

modules/bitgo/test/v2/integration/coins/xlm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { BaseCoin } from '../../../../src/v2';
44

55
import { TestBitGo } from '../../../lib/test_bitgo';
66

7-
import * as nock from 'nock';
7+
import nock from 'nock';
88

99
describe('XLM:', function () {
1010
let bitgo: typeof TestBitGo;

modules/bitgo/test/v2/integration/wallet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import * as should from 'should';
66
import * as _ from 'lodash';
7-
import * as nock from 'nock';
7+
import nock from 'nock';
88

99
import { TestBitGo } from '../../lib/test_bitgo';
1010

modules/bitgo/test/v2/lib/recovery-nocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @prettier
33
*/
4-
import * as nock from 'nock';
4+
import nock from 'nock';
55
import { Environments } from '@bitgo/sdk-core';
66

77
module.exports.nockXrpRecovery = function nockXrpRecovery() {

modules/bitgo/test/v2/unit/PrebuildAndSign.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as sinon from 'sinon';
2-
import * as nock from 'nock';
2+
import nock from 'nock';
33

44
import { Environments, Wallet } from '@bitgo/sdk-core';
55
import { TestableBG, TestBitGo } from '@bitgo/sdk-test';

modules/bitgo/test/v2/unit/accountConsolidations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import * as sinon from 'sinon';
66
require('should-sinon');
77

88
import '../lib/asserts';
9-
import * as nock from 'nock';
9+
import nock from 'nock';
1010

1111
import { common, Wallet } from '@bitgo/sdk-core';
1212

0 commit comments

Comments
 (0)