diff --git a/test/specs/utils/kindOf.js b/test/specs/utils/kindOf.js index a6795f2..e657522 100644 --- a/test/specs/utils/kindOf.js +++ b/test/specs/utils/kindOf.js @@ -1,10 +1,12 @@ -import {kindOfTest} from '../../../lib/utils'; +import utils from '../../../lib/utils'; -describe('utils::endsWith', function () { - it('should return true if the string ends with passed substring', function () { - const test = kindOfTest('number'); +const {kindOf} = utils; - expect(test(123)).toEqual(true); - expect(test('123')).toEqual(false); +describe('utils::kindOf', function () { + it('should return object tag', function () { + expect(kindOf({})).toEqual('object'); + // cached result + expect(kindOf({})).toEqual('object'); + expect(kindOf([])).toEqual('array'); }); }); diff --git a/test/specs/utils/kindOfTest.js b/test/specs/utils/kindOfTest.js index e657522..b6211b5 100644 --- a/test/specs/utils/kindOfTest.js +++ b/test/specs/utils/kindOfTest.js @@ -1,12 +1,10 @@ -import utils from '../../../lib/utils'; +import {kindOfTest} from '../../../lib/utils'; -const {kindOf} = utils; +describe('utils::kindOfTest', function () { + it('should return true if the type is matched', function () { + const test = kindOfTest('number'); -describe('utils::kindOf', function () { - it('should return object tag', function () { - expect(kindOf({})).toEqual('object'); - // cached result - expect(kindOf({})).toEqual('object'); - expect(kindOf([])).toEqual('array'); + expect(test(123)).toEqual(true); + expect(test('123')).toEqual(false); }); });