UNPKG

2.62 kBJavaScriptView Raw
1"use strict";
2
3function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
5var test = require('tape');
6
7var publicApi = require('.');
8
9test('📦 @mintlab/kitchen-sink', function (assert) {
10 assert.equal(_typeof(publicApi.asArray), 'function', 'has a `asArray` method');
11 assert.equal(_typeof(publicApi.bind), 'function', 'has a `bind` method');
12 assert.equal(_typeof(publicApi.callOrNothingAtAll), 'function', 'has a `callOrNothingAtAll` method');
13 assert.equal(_typeof(publicApi.buildParamString), 'function', 'has an `buildParamString` method');
14 assert.equal(_typeof(publicApi.buildUrl), 'function', 'has an `buildUrl` method');
15 assert.equal(_typeof(publicApi.cloneWithout), 'function', 'has a `cloneWithout` method');
16 assert.equal(_typeof(publicApi.dictionary), 'function', 'has a `dictionary` method');
17 assert.equal(_typeof(publicApi.expose), 'function', 'has an `expose` method');
18 assert.equal(_typeof(publicApi.extract), 'function', 'has an `extract` method');
19 assert.equal(_typeof(publicApi.isObject), 'function', 'has an `isObject` method');
20 assert.equal(_typeof(publicApi.isPopulatedArray), 'function', 'has an `isPopulatedArray` method');
21 assert.equal(_typeof(publicApi.filterProperties), 'function', 'has an `filterProperties` method');
22 assert.equal(_typeof(publicApi.filterPropertiesOnValues), 'function', 'has an `filterPropertiesOnValues` method');
23 assert.equal(_typeof(publicApi.get), 'function', 'has a `get` method');
24 assert.equal(_typeof(publicApi.getObject), 'function', 'has a `getObject` method');
25 assert.equal(_typeof(publicApi.getSegment), 'function', 'has an `getSegment` method');
26 assert.equal(_typeof(publicApi.objectifyParams), 'function', 'has an `objectifyParams` method');
27 assert.equal(_typeof(publicApi.performGetOnProperties), 'function', 'has a `performGetOnProperties` method');
28 assert.equal(_typeof(publicApi.purge), 'function', 'has a `purge` method');
29 assert.equal(_typeof(publicApi.reduceMap), 'function', 'has a `reduceMap` method');
30 assert.equal(_typeof(publicApi.removeFromArray), 'function', 'has a `removeFromArray` method');
31 assert.equal(_typeof(publicApi.toggleItem), 'function', 'has a `toggleItem` method');
32 assert.equal(_typeof(publicApi.unique), 'function', 'has a `unique` method');
33 assert.end();
34});
\No newline at end of file