Remove /index imports (swap to bare) (#362)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import BN from 'bn.js';
|
||||
|
||||
import { isBn } from './index';
|
||||
import { isBn } from '.';
|
||||
|
||||
describe('isBN', () => {
|
||||
it('returns true when a BN value', () => {
|
||||
|
||||
@@ -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 { isBoolean } from './index';
|
||||
import { isBoolean } from '.';
|
||||
|
||||
describe('isBoolean', () => {
|
||||
it('returns true on false', () => {
|
||||
|
||||
@@ -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 { isBuffer } from './index';
|
||||
import { isBuffer } from '.';
|
||||
|
||||
describe('isBuffer', () => {
|
||||
it('returns true when a Buffer value', () => {
|
||||
|
||||
@@ -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 { isError } from './index';
|
||||
import { isError } from '.';
|
||||
|
||||
describe('isError', () => {
|
||||
it('returns true when an Error value', () => {
|
||||
|
||||
@@ -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 { isFunction } from './index';
|
||||
import { isFunction } from '.';
|
||||
|
||||
describe('isFunction', () => {
|
||||
it('returns true on valid functions', () => {
|
||||
|
||||
@@ -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 { isHex } from './index';
|
||||
import { isHex } from '.';
|
||||
|
||||
describe('isHex', () => {
|
||||
const test = '1234abcd';
|
||||
|
||||
@@ -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 { isInstanceOf } from './index';
|
||||
import { isInstanceOf } from '.';
|
||||
|
||||
describe('isInstanceOf', () => {
|
||||
it('returns true on real instances', () => {
|
||||
|
||||
@@ -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 { isIp } from './index';
|
||||
import { isIp } from '.';
|
||||
|
||||
describe('isIp', () => {
|
||||
it('returns false when non-ip found', () => {
|
||||
|
||||
@@ -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 { isJsonObject } from './index';
|
||||
import { isJsonObject } from '.';
|
||||
|
||||
const jsonObject = `{
|
||||
"Test": "1234",
|
||||
|
||||
@@ -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 { isNull } from './index';
|
||||
import { isNull } from '.';
|
||||
|
||||
describe('isNull', () => {
|
||||
it('returns true when a null value', () => {
|
||||
|
||||
@@ -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 { isNumber } from './index';
|
||||
import { isNumber } from '.';
|
||||
|
||||
describe('isNumber', () => {
|
||||
it('returns true on valid numbers', () => {
|
||||
|
||||
@@ -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 { isObject } from './index';
|
||||
import { isObject } from '.';
|
||||
|
||||
describe('isObject', () => {
|
||||
it('returns true on valid objects', () => {
|
||||
|
||||
@@ -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 { isObservable } from './index';
|
||||
import { isObservable } from '.';
|
||||
|
||||
describe('isObservable', () => {
|
||||
it('returns true on valid observables', () => {
|
||||
|
||||
@@ -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 { isString } from './index';
|
||||
import { isString } from '.';
|
||||
|
||||
describe('isString', () => {
|
||||
it('returns true on valid strings', () => {
|
||||
|
||||
@@ -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 { isU8a } from './index';
|
||||
import { isU8a } from '.';
|
||||
|
||||
describe('isUint8Array', () => {
|
||||
it('returns false on undefined values', () => {
|
||||
|
||||
@@ -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 { isUndefined } from './index';
|
||||
import { isUndefined } from '.';
|
||||
|
||||
describe('isUndefined', () => {
|
||||
it('returns true on undefined values', () => {
|
||||
|
||||
Reference in New Issue
Block a user