Remove /index imports (swap to bare) (#362)
This commit is contained in:
@@ -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 { u8aConcat } from './index';
|
||||
import { u8aConcat } from '.';
|
||||
|
||||
describe('u8aConcat', () => {
|
||||
it('concatenates arrays', () => {
|
||||
|
||||
@@ -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 { u8aFixLength } from './index';
|
||||
import { u8aFixLength } from '.';
|
||||
|
||||
describe('u8aFixLength', () => {
|
||||
it('returns bitLength === -1 as-is', () => {
|
||||
|
||||
@@ -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 { u8aToBn } from './index';
|
||||
import { u8aToBn } from '.';
|
||||
|
||||
describe('u8aToBn', () => {
|
||||
it('converts little-endian by default', () => {
|
||||
|
||||
@@ -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 { u8aToBuffer } from './index';
|
||||
import { u8aToBuffer } from '.';
|
||||
|
||||
describe('u8aToBuffer', () => {
|
||||
it('returns [] when the buffer is null', () => {
|
||||
|
||||
@@ -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 './index';
|
||||
import { u8aToHex } from '.';
|
||||
|
||||
describe('u8aToHex', () => {
|
||||
it('returns empty as 0x', () => {
|
||||
|
||||
@@ -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 { u8aToString } from '../index';
|
||||
import { u8aToString } from '..';
|
||||
|
||||
describe('u8aToString', () => {
|
||||
it('decodes to an empty string for undefined', () => {
|
||||
|
||||
@@ -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 { u8aToU8a } from './index';
|
||||
import { u8aToU8a } from '.';
|
||||
|
||||
describe('u8aToU8a', () => {
|
||||
it('returns an empty Uint8Array when null provided', () => {
|
||||
|
||||
Reference in New Issue
Block a user