Remove /index imports (swap to bare) (#362)

This commit is contained in:
Jaco Greeff
2019-03-14 08:41:00 +01:00
committed by GitHub
parent a7ef2dcd86
commit de67a88f45
162 changed files with 198 additions and 189 deletions
@@ -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', () => {
+1 -1
View File
@@ -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', () => {
+1 -1
View File
@@ -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', () => {