1 | const test = require('tape');
|
2 | const publicApi = require('.');
|
3 |
|
4 | test('📦 @mintlab/kitchen-sink', assert => {
|
5 | assert.equal(typeof publicApi.asArray, 'function', 'has a `asArray` method');
|
6 | assert.equal(typeof publicApi.bind, 'function', 'has a `bind` method');
|
7 | assert.equal(
|
8 | typeof publicApi.callOrNothingAtAll,
|
9 | 'function',
|
10 | 'has a `callOrNothingAtAll` method'
|
11 | );
|
12 | assert.equal(
|
13 | typeof publicApi.buildParamString,
|
14 | 'function',
|
15 | 'has an `buildParamString` method'
|
16 | );
|
17 | assert.equal(
|
18 | typeof publicApi.buildUrl,
|
19 | 'function',
|
20 | 'has an `buildUrl` method'
|
21 | );
|
22 | assert.equal(
|
23 | typeof publicApi.cloneWithout,
|
24 | 'function',
|
25 | 'has a `cloneWithout` method'
|
26 | );
|
27 | assert.equal(
|
28 | typeof publicApi.dictionary,
|
29 | 'function',
|
30 | 'has a `dictionary` method'
|
31 | );
|
32 | assert.equal(typeof publicApi.expose, 'function', 'has an `expose` method');
|
33 | assert.equal(typeof publicApi.extract, 'function', 'has an `extract` method');
|
34 | assert.equal(
|
35 | typeof publicApi.isObject,
|
36 | 'function',
|
37 | 'has an `isObject` method'
|
38 | );
|
39 | assert.equal(
|
40 | typeof publicApi.isPopulatedArray,
|
41 | 'function',
|
42 | 'has an `isPopulatedArray` method'
|
43 | );
|
44 | assert.equal(
|
45 | typeof publicApi.filterProperties,
|
46 | 'function',
|
47 | 'has an `filterProperties` method'
|
48 | );
|
49 | assert.equal(
|
50 | typeof publicApi.filterPropertiesOnValues,
|
51 | 'function',
|
52 | 'has an `filterPropertiesOnValues` method'
|
53 | );
|
54 | assert.equal(typeof publicApi.get, 'function', 'has a `get` method');
|
55 | assert.equal(
|
56 | typeof publicApi.getObject,
|
57 | 'function',
|
58 | 'has a `getObject` method'
|
59 | );
|
60 | assert.equal(
|
61 | typeof publicApi.getSegment,
|
62 | 'function',
|
63 | 'has an `getSegment` method'
|
64 | );
|
65 | assert.equal(
|
66 | typeof publicApi.passOrGet,
|
67 | 'function',
|
68 | 'has a `passOrGet` method'
|
69 | );
|
70 | assert.equal(
|
71 | typeof publicApi.objectifyParams,
|
72 | 'function',
|
73 | 'has an `objectifyParams` method'
|
74 | );
|
75 | assert.equal(
|
76 | typeof publicApi.performGetOnProperties,
|
77 | 'function',
|
78 | 'has a `performGetOnProperties` method'
|
79 | );
|
80 | assert.equal(typeof publicApi.purge, 'function', 'has a `purge` method');
|
81 | assert.equal(
|
82 | typeof publicApi.reduceMap,
|
83 | 'function',
|
84 | 'has a `reduceMap` method'
|
85 | );
|
86 | assert.equal(
|
87 | typeof publicApi.removeFromArray,
|
88 | 'function',
|
89 | 'has a `removeFromArray` method'
|
90 | );
|
91 | assert.equal(
|
92 | typeof publicApi.toggleItem,
|
93 | 'function',
|
94 | 'has a `toggleItem` method'
|
95 | );
|
96 | assert.equal(typeof publicApi.unique, 'function', 'has a `unique` method');
|
97 | assert.end();
|
98 | });
|