Remove /index imports (swap to bare) (#362)
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { isHex } from '@polkadot/util/index';
|
||||
import { isHex } from '@polkadot/util';
|
||||
|
||||
import { randomAsHex } from './index';
|
||||
import { randomAsHex } from '.';
|
||||
|
||||
describe('randomAsBuffer', () => {
|
||||
it('generated results does not match', () => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { u8aToHex } from '@polkadot/util/index';
|
||||
import { u8aToHex } from '@polkadot/util';
|
||||
|
||||
import randomAsU8a from './asU8a';
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { randomAsNumber } from './index';
|
||||
import { randomAsNumber } from '.';
|
||||
|
||||
describe('randomAsNumber', () => {
|
||||
it('generates subsequent non-matching numbers', () => {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import BN from 'bn.js';
|
||||
import { hexToBn } from '@polkadot/util/index';
|
||||
import { hexToBn } from '@polkadot/util';
|
||||
|
||||
import randomAsHex from './asHex';
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { isU8a } from '@polkadot/util/index';
|
||||
import { isU8a } from '@polkadot/util';
|
||||
|
||||
import { randomAsU8a } from './index';
|
||||
import { randomAsU8a } from '.';
|
||||
|
||||
describe('randomAsU8a', () => {
|
||||
it('generates a Uint8Array', () => {
|
||||
|
||||
Reference in New Issue
Block a user