@orchidjs/sifter 0.7.5 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +25 -3
  2. package/dist/cjs/diacritics.js +114 -64
  3. package/dist/cjs/diacritics.js.map +1 -1
  4. package/dist/cjs/sifter.js +8 -4
  5. package/dist/cjs/sifter.js.map +1 -1
  6. package/dist/cjs/utils.js +7 -1
  7. package/dist/cjs/utils.js.map +1 -1
  8. package/dist/esm/diacritics.js +112 -65
  9. package/dist/esm/diacritics.js.map +1 -1
  10. package/dist/esm/sifter.js +9 -5
  11. package/dist/esm/sifter.js.map +1 -1
  12. package/dist/esm/utils.js +7 -1
  13. package/dist/esm/utils.js.map +1 -1
  14. package/dist/types/diacritics.d.ts +21 -32
  15. package/dist/types/sifter.d.ts +3 -3
  16. package/dist/types/types.d.ts +10 -8
  17. package/dist/types/utils.d.ts +5 -1
  18. package/dist/umd/sifter.js +125 -68
  19. package/dist/umd/sifter.js.map +1 -1
  20. package/dist/umd/sifter.min.js +48 -30
  21. package/dist/umd/sifter.min.js.map +1 -1
  22. package/lib/diacritics.ts +142 -78
  23. package/lib/sifter.ts +9 -6
  24. package/lib/types.ts +12 -8
  25. package/lib/utils.ts +9 -2
  26. package/package.json +7 -3
  27. package/.config/babel.config.json +0 -17
  28. package/.config/rollup.config.js +0 -95
  29. package/.config/tsconfig.json +0 -16
  30. package/.travis.yml +0 -9
  31. package/Makefile +0 -27
  32. package/build/cjs/diacritics.js +0 -123
  33. package/build/cjs/diacritics.js.map +0 -1
  34. package/build/cjs/sifter.js +0 -373
  35. package/build/cjs/sifter.js.map +0 -1
  36. package/build/cjs/utils.js +0 -108
  37. package/build/cjs/utils.js.map +0 -1
  38. package/build/esm/diacritics.js +0 -117
  39. package/build/esm/diacritics.js.map +0 -1
  40. package/build/esm/sifter.js +0 -371
  41. package/build/esm/sifter.js.map +0 -1
  42. package/build/esm/utils.js +0 -98
  43. package/build/esm/utils.js.map +0 -1
  44. package/build/umd/sifter.js +0 -583
  45. package/build/umd/sifter.js.map +0 -1
  46. package/build/umd/sifter.min.js +0 -66
  47. package/build/umd/sifter.min.js.map +0 -1
  48. package/coverage/clover.xml +0 -217
  49. package/coverage/coverage-final.json +0 -4
  50. package/coverage/lcov-report/base.css +0 -224
  51. package/coverage/lcov-report/block-navigation.js +0 -79
  52. package/coverage/lcov-report/diacritics.ts.html +0 -941
  53. package/coverage/lcov-report/favicon.png +0 -0
  54. package/coverage/lcov-report/index.html +0 -141
  55. package/coverage/lcov-report/prettify.css +0 -1
  56. package/coverage/lcov-report/prettify.js +0 -2
  57. package/coverage/lcov-report/sifter.ts.html +0 -1160
  58. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  59. package/coverage/lcov-report/sorter.js +0 -170
  60. package/coverage/lcov-report/utils.ts.html +0 -398
  61. package/coverage/lcov.info +0 -429
  62. package/release.sh +0 -119
  63. package/test/getScoreFunction.js +0 -55
  64. package/test/prepareSearch.js +0 -40
  65. package/test/search.js +0 -307
  66. package/test/sorting.js +0 -193
  67. package/test/tokenize.js +0 -63
  68. package/test/utils.js +0 -28
@@ -1,429 +0,0 @@
1
- TN:
2
- SF:lib/diacritics.ts
3
- FN:141,(anonymous_0)
4
- FN:191,(anonymous_1)
5
- FN:204,(anonymous_2)
6
- FN:239,(anonymous_3)
7
- FNF:4
8
- FNH:4
9
- FNDA:146,(anonymous_0)
10
- FNDA:5,(anonymous_1)
11
- FNDA:115,(anonymous_2)
12
- FNDA:41,(anonymous_3)
13
- DA:110,6
14
- DA:141,6
15
- DA:142,146
16
- DA:191,6
17
- DA:193,5
18
- DA:202,5
19
- DA:204,5
20
- DA:206,115
21
- DA:207,4840
22
- DA:208,4840
23
- DA:210,4840
24
- DA:212,1700
25
- DA:215,3140
26
- DA:217,3140
27
- DA:218,65
28
- DA:221,3140
29
- DA:222,190
30
- DA:224,3140
31
- DA:230,5
32
- DA:238,6
33
- DA:239,6
34
- DA:241,41
35
- DA:242,5
36
- DA:245,41
37
- DA:246,1558
38
- DA:247,1558
39
- DA:250,41
40
- LF:27
41
- LH:27
42
- BRDA:210,0,0,1700
43
- BRDA:210,0,1,3140
44
- BRDA:217,1,0,65
45
- BRDA:217,1,1,3075
46
- BRDA:221,2,0,190
47
- BRDA:221,2,1,2950
48
- BRDA:241,3,0,5
49
- BRDA:241,3,1,36
50
- BRDA:246,4,0,1558
51
- BRDA:246,4,1,0
52
- BRF:10
53
- BRH:9
54
- end_of_record
55
- TN:
56
- SF:lib/sifter.ts
57
- FN:35,(anonymous_0)
58
- FN:45,(anonymous_1)
59
- FN:56,(anonymous_2)
60
- FN:94,(anonymous_3)
61
- FN:99,(anonymous_4)
62
- FN:104,(anonymous_5)
63
- FN:113,(anonymous_6)
64
- FN:122,(anonymous_7)
65
- FN:126,(anonymous_8)
66
- FN:132,(anonymous_9)
67
- FN:149,(anonymous_10)
68
- FN:159,(anonymous_11)
69
- FN:165,(anonymous_12)
70
- FN:175,(anonymous_13)
71
- FN:177,(anonymous_14)
72
- FN:192,(anonymous_15)
73
- FN:197,(anonymous_16)
74
- FN:212,get_field
75
- FN:259,(anonymous_18)
76
- FN:266,(anonymous_19)
77
- FN:287,(anonymous_20)
78
- FN:298,(anonymous_21)
79
- FN:325,(anonymous_22)
80
- FN:337,(anonymous_23)
81
- FN:344,(anonymous_24)
82
- FNF:25
83
- FNH:23
84
- FNDA:32,(anonymous_0)
85
- FNDA:42,(anonymous_1)
86
- FNDA:42,(anonymous_2)
87
- FNDA:3,(anonymous_3)
88
- FNDA:36,(anonymous_4)
89
- FNDA:0,(anonymous_5)
90
- FNDA:2,(anonymous_6)
91
- FNDA:26,(anonymous_7)
92
- FNDA:38,(anonymous_8)
93
- FNDA:62,(anonymous_9)
94
- FNDA:137,(anonymous_10)
95
- FNDA:55,(anonymous_11)
96
- FNDA:7,(anonymous_12)
97
- FNDA:17,(anonymous_13)
98
- FNDA:34,(anonymous_14)
99
- FNDA:0,(anonymous_15)
100
- FNDA:32,(anonymous_16)
101
- FNDA:152,get_field
102
- FNDA:38,(anonymous_18)
103
- FNDA:27,(anonymous_19)
104
- FNDA:38,(anonymous_20)
105
- FNDA:57,(anonymous_21)
106
- FNDA:32,(anonymous_22)
107
- FNDA:65,(anonymous_23)
108
- FNDA:31,(anonymous_24)
109
- DA:35,64
110
- DA:36,32
111
- DA:37,32
112
- DA:46,42
113
- DA:48,32
114
- DA:49,32
115
- DA:52,32
116
- DA:53,29
117
- DA:56,32
118
- DA:58,42
119
- DA:59,42
120
- DA:62,42
121
- DA:63,3
122
- DA:64,3
123
- DA:67,42
124
- DA:68,41
125
- DA:69,41
126
- DA:70,41
127
- DA:72,41
128
- DA:75,42
129
- DA:82,32
130
- DA:95,3
131
- DA:96,3
132
- DA:100,36
133
- DA:101,36
134
- DA:103,36
135
- DA:104,9
136
- DA:107,27
137
- DA:108,27
138
- DA:109,27
139
- DA:110,27
140
- DA:112,27
141
- DA:113,2
142
- DA:122,26
143
- DA:125,26
144
- DA:126,13
145
- DA:127,38
146
- DA:128,38
147
- DA:132,13
148
- DA:133,62
149
- DA:136,62
150
- DA:138,6
151
- DA:140,6
152
- DA:141,1
153
- DA:143,5
154
- DA:149,56
155
- DA:150,137
156
- DA:154,62
157
- DA:158,26
158
- DA:159,20
159
- DA:160,55
160
- DA:164,6
161
- DA:165,2
162
- DA:166,7
163
- DA:167,7
164
- DA:168,11
165
- DA:169,11
166
- DA:170,5
167
- DA:172,1
168
- DA:175,4
169
- DA:176,17
170
- DA:177,17
171
- DA:178,34
172
- DA:180,17
173
- DA:193,0
174
- DA:194,0
175
- DA:200,32
176
- DA:201,32
177
- DA:202,32
178
- DA:203,32
179
- DA:204,32
180
- DA:212,32
181
- DA:213,152
182
- DA:214,128
183
- DA:218,32
184
- DA:219,13
185
- DA:220,17
186
- DA:221,17
187
- DA:228,32
188
- DA:229,23
189
- DA:230,23
190
- DA:231,6
191
- DA:232,2
192
- DA:233,2
193
- DA:236,23
194
- DA:237,21
195
- DA:240,9
196
- DA:241,11
197
- DA:242,0
198
- DA:243,0
199
- DA:248,32
200
- DA:249,38
201
- DA:253,32
202
- DA:254,32
203
- DA:255,0
204
- DA:256,32
205
- DA:257,26
206
- DA:258,26
207
- DA:259,26
208
- DA:260,38
209
- DA:266,6
210
- DA:268,27
211
- DA:269,38
212
- DA:270,38
213
- DA:274,38
214
- DA:276,5
215
- DA:288,38
216
- DA:289,38
217
- DA:291,38
218
- DA:292,38
219
- DA:295,38
220
- DA:296,37
221
- DA:297,37
222
- DA:298,37
223
- DA:299,57
224
- DA:300,49
225
- DA:302,57
226
- DA:303,57
227
- DA:305,37
228
- DA:308,38
229
- DA:310,38
230
- DA:326,32
231
- DA:328,32
232
- DA:329,32
233
- DA:330,32
234
- DA:333,32
235
- DA:336,32
236
- DA:337,23
237
- DA:338,65
238
- DA:339,65
239
- DA:340,38
240
- DA:344,9
241
- DA:345,31
242
- DA:349,32
243
- DA:350,32
244
- DA:353,32
245
- DA:354,32
246
- DA:355,3
247
- DA:358,32
248
- LF:139
249
- LH:134
250
- BRDA:37,0,0,32
251
- BRDA:37,0,1,32
252
- BRDA:46,1,0,10
253
- BRDA:46,1,1,32
254
- BRDA:46,2,0,42
255
- BRDA:46,2,1,32
256
- BRDA:52,3,0,29
257
- BRDA:52,3,1,3
258
- BRDA:62,4,0,3
259
- BRDA:62,4,1,39
260
- BRDA:62,5,0,42
261
- BRDA:62,5,1,36
262
- BRDA:67,6,0,41
263
- BRDA:67,6,1,1
264
- BRDA:69,7,0,41
265
- BRDA:69,7,1,0
266
- BRDA:72,8,0,6
267
- BRDA:72,8,1,35
268
- BRDA:77,9,0,41
269
- BRDA:77,9,1,1
270
- BRDA:103,10,0,9
271
- BRDA:103,10,1,27
272
- BRDA:112,11,0,1
273
- BRDA:112,11,1,26
274
- BRDA:125,12,0,13
275
- BRDA:125,12,1,13
276
- BRDA:136,13,0,6
277
- BRDA:136,13,1,56
278
- BRDA:140,14,0,1
279
- BRDA:140,14,1,5
280
- BRDA:140,15,0,6
281
- BRDA:140,15,1,2
282
- BRDA:158,16,0,20
283
- BRDA:158,16,1,6
284
- BRDA:164,17,0,2
285
- BRDA:164,17,1,4
286
- BRDA:169,18,0,6
287
- BRDA:169,18,1,5
288
- BRDA:202,19,0,1
289
- BRDA:202,19,1,31
290
- BRDA:202,20,0,32
291
- BRDA:202,20,1,9
292
- BRDA:213,21,0,24
293
- BRDA:213,21,1,128
294
- BRDA:218,22,0,13
295
- BRDA:218,22,1,19
296
- BRDA:220,23,0,17
297
- BRDA:220,23,1,0
298
- BRDA:220,24,0,17
299
- BRDA:220,24,1,11
300
- BRDA:228,25,0,23
301
- BRDA:228,25,1,9
302
- BRDA:231,26,0,2
303
- BRDA:231,26,1,4
304
- BRDA:236,27,0,21
305
- BRDA:236,27,1,2
306
- BRDA:241,28,0,0
307
- BRDA:241,28,1,11
308
- BRDA:249,29,0,23
309
- BRDA:249,29,1,15
310
- BRDA:254,30,0,0
311
- BRDA:254,30,1,32
312
- BRDA:256,31,0,26
313
- BRDA:256,31,1,6
314
- BRDA:274,32,0,22
315
- BRDA:274,32,1,16
316
- BRDA:295,33,0,37
317
- BRDA:295,33,1,1
318
- BRDA:299,34,0,49
319
- BRDA:299,34,1,8
320
- BRDA:303,35,0,55
321
- BRDA:303,35,1,2
322
- BRDA:317,36,0,2
323
- BRDA:317,36,1,36
324
- BRDA:333,37,0,32
325
- BRDA:333,37,1,32
326
- BRDA:336,38,0,23
327
- BRDA:336,38,1,9
328
- BRDA:339,39,0,38
329
- BRDA:339,39,1,27
330
- BRDA:339,40,0,65
331
- BRDA:339,40,1,62
332
- BRDA:350,41,0,32
333
- BRDA:350,41,1,0
334
- BRDA:354,42,0,3
335
- BRDA:354,42,1,29
336
- BRF:86
337
- BRH:81
338
- end_of_record
339
- TN:
340
- SF:lib/utils.ts
341
- FN:15,(anonymous_0)
342
- FN:26,(anonymous_1)
343
- FN:38,(anonymous_2)
344
- FN:53,(anonymous_3)
345
- FN:62,(anonymous_4)
346
- FN:80,(anonymous_5)
347
- FN:97,(anonymous_6)
348
- FNF:7
349
- FNH:7
350
- FNDA:299,(anonymous_0)
351
- FNDA:12,(anonymous_1)
352
- FNDA:181,(anonymous_2)
353
- FNDA:87,(anonymous_3)
354
- FNDA:113,(anonymous_4)
355
- FNDA:105,(anonymous_5)
356
- FNDA:77,(anonymous_6)
357
- DA:15,6
358
- DA:16,299
359
- DA:17,298
360
- DA:26,6
361
- DA:27,12
362
- DA:28,11
363
- DA:29,11
364
- DA:30,11
365
- DA:38,6
366
- DA:41,181
367
- DA:43,165
368
- DA:44,165
369
- DA:45,165
370
- DA:47,56
371
- DA:48,56
372
- DA:50,56
373
- DA:53,6
374
- DA:54,87
375
- DA:62,6
376
- DA:63,113
377
- DA:64,113
378
- DA:65,23
379
- DA:80,6
380
- DA:82,105
381
- DA:83,48
382
- DA:87,57
383
- DA:88,139
384
- DA:89,139
385
- DA:97,6
386
- DA:98,77
387
- DA:99,23
388
- DA:101,54
389
- DA:102,54
390
- DA:103,54
391
- DA:104,38
392
- DA:105,11
393
- LF:36
394
- LH:36
395
- BRDA:16,0,0,1
396
- BRDA:16,0,1,298
397
- BRDA:27,1,0,1
398
- BRDA:27,1,1,11
399
- BRDA:29,2,0,33
400
- BRDA:29,2,1,22
401
- BRDA:41,3,0,16
402
- BRDA:41,3,1,165
403
- BRDA:45,4,0,109
404
- BRDA:45,4,1,56
405
- BRDA:48,5,0,42
406
- BRDA:48,5,1,14
407
- BRDA:64,6,0,23
408
- BRDA:64,6,1,90
409
- BRDA:64,7,0,113
410
- BRDA:64,7,1,53
411
- BRDA:82,8,0,48
412
- BRDA:82,8,1,57
413
- BRDA:88,9,0,139
414
- BRDA:88,9,1,0
415
- BRDA:98,10,0,23
416
- BRDA:98,10,1,54
417
- BRDA:98,11,0,77
418
- BRDA:98,11,1,23
419
- BRDA:99,12,0,8
420
- BRDA:99,12,1,15
421
- BRDA:99,13,0,6
422
- BRDA:99,13,1,9
423
- BRDA:103,14,0,16
424
- BRDA:103,14,1,38
425
- BRDA:104,15,0,27
426
- BRDA:104,15,1,11
427
- BRF:32
428
- BRH:31
429
- end_of_record
package/release.sh DELETED
@@ -1,119 +0,0 @@
1
- #!/bin/bash
2
-
3
- VERSION=$1
4
-
5
- # This is a general-purpose function to ask Yes/No questions in Bash, either
6
- # with or without a default answer. It keeps repeating the question until it
7
- # gets a valid answer.
8
- # https://gist.github.com/davejamesmiller/1965569
9
- ask() {
10
- local prompt default reply
11
-
12
- if [ "${2:-}" = "Y" ]; then
13
- prompt="Y/n"
14
- default=Y
15
- elif [ "${2:-}" = "N" ]; then
16
- prompt="y/N"
17
- default=N
18
- else
19
- prompt="y/n"
20
- default=
21
- fi
22
-
23
- while true; do
24
-
25
- # Ask the question (not using "read -p" as it uses stderr not stdout)
26
- echo -n "$1 [$prompt] "
27
-
28
- # Read the answer (use /dev/tty in case stdin is redirected from somewhere else)
29
- read reply </dev/tty
30
-
31
- # Default?
32
- if [ -z "$reply" ]; then
33
- reply=$default
34
- fi
35
-
36
- # Check if the reply is valid
37
- case "$reply" in
38
- Y*|y*) return 0 ;;
39
- N*|n*) return 1 ;;
40
- esac
41
-
42
- done
43
- }
44
-
45
- # make sure the release is being made from the master branch
46
- BRANCH="$(git rev-parse --abbrev-ref HEAD)"
47
- if [[ "$BRANCH" != "master" ]]; then
48
- echo 'Not on master branch';
49
- exit 1;
50
- fi
51
-
52
-
53
- # make sure there aren't any uncommited changes
54
- if ! git diff-index --quiet HEAD --; then
55
- echo 'Commit all changes before releas before making release'
56
- exit
57
- fi
58
-
59
-
60
- # make sure release number is valid
61
- if ! [[ "$VERSION" =~ ^([0-9]\.[0-9]\.[0-9]) ]]; then
62
- echo "Release number must match a semver pattern similar to 1.0.0"
63
- exit
64
- fi
65
-
66
-
67
- # make sure tests pass
68
- if ! npm test; then
69
- echo 'Tests failed... cannot create release'
70
- exit
71
- fi
72
-
73
- # update package.json and package-lock.json
74
- if ! sed -i 's/"version": "[^"]*"/"version": "'$VERSION'"/' package.json; then
75
- echo 'version not replaced in package-lock.json'
76
- exit
77
- fi
78
-
79
- # build from source
80
- if ! npm run build; then
81
- echo 'Build failed... cannot create release'
82
- exit
83
- fi
84
-
85
- # remove contents of dist folder
86
- if ! rm -r dist/*; then
87
- echo '/dist not emptied... cannot create release'
88
- exit
89
- fi
90
-
91
-
92
- # copy /build to /dist
93
- if ! cp -r build/* dist; then
94
- echo '/build not copied to /dist... cannot create release'
95
- exit
96
- fi
97
-
98
-
99
- # make sure types are up-to-date
100
- if ! npm run build:types; then
101
- echo 'types not generated'
102
- exit
103
- fi
104
-
105
-
106
- # prompt before finalizing
107
- if ! ask "Version $VERSION is ready for release. Are you sure?"; then
108
- echo 'release aborted'
109
- exit
110
- fi
111
-
112
-
113
- git add .
114
- git commit -a -m "v$VERSION Release"
115
- git tag "v$VERSION"
116
- git push origin master
117
- git push origin --tags
118
- npm publish
119
- echo "\033[32mv${VERSION} released\033[0;39m"
@@ -1,55 +0,0 @@
1
- var assert = require('assert');
2
- var Sifter = require('../build/cjs/sifter.js');
3
-
4
- describe('#getScoreFunction()', function() {
5
-
6
- it('should acknowledge AND "conjunction" option', function() {
7
- var score, search, sifter = new Sifter([]);
8
-
9
- score = sifter.getScoreFunction('one two', {fields: ['a','b'], conjunction: 'and'});
10
- assert.equal(score({a: 'one'}) > 0, false);
11
- assert.equal(score({a: 'one', b: 'two'}) > 0, true);
12
- assert.equal(score({a: 'one', b: 'one'}) > 0, false);
13
- assert.equal(score({a: 'one', b: 'three'}) > 0, false);
14
- assert.equal(score({a: 'three', b: 'three'}) > 0, false);
15
- });
16
-
17
- it('should acknowledge OR "conjunction" option', function() {
18
- var score, search, sifter = new Sifter([]);
19
-
20
- score = sifter.getScoreFunction('one two', {fields: ['a','b'], conjunction: 'or'});
21
- assert.equal(score({a: 'one'}) > 0, true);
22
- assert.equal(score({a: 'one', b: 'two'}) > 0, true);
23
- assert.equal(score({a: 'one', b: 'one'}) > 0, true);
24
- assert.equal(score({a: 'one', b: 'three'}) > 0, true);
25
- assert.equal(score({a: 'three', b: 'three'}) > 0, false);
26
- });
27
-
28
- describe('with query and options', function() {
29
-
30
- it('should return a function that returns a number', function() {
31
- var score, search, sifter = new Sifter([]);
32
-
33
- score = sifter.getScoreFunction('test', {fields: ['a','b']});
34
- assert.equal(typeof score({a: 'test'}), 'number');
35
- assert.equal(score({a: 'test'}) > 0, true);
36
- assert.equal(typeof score({}), 'number');
37
- });
38
-
39
- });
40
-
41
- describe('with pre-prepared search', function() {
42
-
43
- it('should return a function that returns a number', function() {
44
- var score, search, sifter = new Sifter([]);
45
-
46
- search = sifter.prepareSearch('test', {fields: ['a','b']});
47
- score = sifter._getScoreFunction(search);
48
- assert.equal(typeof score({a: 'test'}), 'number');
49
- assert.equal(score({a: 'test'}) > 0, true);
50
- assert.equal(typeof score({}), 'number');
51
- });
52
-
53
- });
54
-
55
- });
@@ -1,40 +0,0 @@
1
- var assert = require('assert');
2
- var Sifter = require('../build/cjs/sifter.js');
3
-
4
- describe('#prepareSearch()', function() {
5
-
6
- it('should normalize options', function() {
7
- var sifter = new Sifter([{fielda: 'a'}, {}]);
8
- var search = sifter.prepareSearch('a', {
9
- fields: [{field: 'fielda'}],
10
- sort: {field: 'fielda'},
11
- sort_empty: {field: 'fielda'}
12
- });
13
- //assert.equal(Array.isArray(search.options.fields), true);
14
- assert.equal(Array.isArray(search.options.sort), true);
15
- assert.equal(Array.isArray(search.options.sort_empty), true);
16
- });
17
-
18
- describe('returned object', function() {
19
- var sifter = new Sifter([{field: 'a'}, {}]);
20
- var search = sifter.prepareSearch('hello world');
21
-
22
- it('should contain "total" (int)', function() {
23
- assert.equal(search.total, 0);
24
- });
25
- it('should contain "tokens" (array)', function() {
26
- assert.equal(Array.isArray(search.tokens), true);
27
- assert.equal(search.tokens.length, 2);
28
- });
29
- it('should contain "items" (array)', function() {
30
- assert.equal(Array.isArray(search.items), true);
31
- assert.equal(search.items.length, 0);
32
- });
33
- it('should contain "options" (array)', function() {
34
- assert.equal(search.options !== null, true);
35
- assert.equal(typeof search.options, 'object');
36
- assert.equal(Array.isArray(search.options), false);
37
- });
38
- });
39
-
40
- });