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
+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 { hexAddPrefix } from './index';
import { hexAddPrefix } from '.';
describe('hexAddPrefix', () => {
it('does not add when prefix is available', () => {
+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 { hexFixLength } from './index';
import { hexFixLength } from '.';
describe('hexFixLength', () => {
it('returns bitLength === -1 as-is', () => {
+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 { hexHasPrefix } from './index';
import { hexHasPrefix } from '.';
describe('hexHasPrefix', () => {
it('returns true when hex prefix is found', () => {
+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 { hexStripPrefix } from './index';
import { hexStripPrefix } from '.';
describe('hexStripPrefix', () => {
it('returns an empty string when null value supplied', () => {
+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 { hexToBn } from './index';
import { hexToBn } from '.';
describe('hexToBn', () => {
it('converts prefixed hex values to BN', () => {
+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 { hexToNumber } from './index';
import { hexToNumber } from '.';
describe('hexToNumber', () => {
it('converts an empty to NaN', () => {
+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 { hexToU8a } from './index';
import { hexToU8a } from '.';
describe('hexToU8a', () => {
it('returns an empty Uint8Array when null provided', () => {