@@ -56,7 +56,7 @@ describe('Sifter', function() {
56
56
assert . equal ( tokens [ 0 ] . regex . test ( 'afawfaf' ) , false ) ;
57
57
} ) ;
58
58
it ( 'should match international characters' , function ( ) {
59
- assert . equal ( tokens [ 0 ] . regex . test ( 'hellö ' ) , true ) ;
59
+ assert . equal ( tokens [ 0 ] . regex . test ( 'hęłlö ' ) , true ) ;
60
60
assert . equal ( tokens [ 1 ] . regex . test ( 'wÕrld' ) , true ) ;
61
61
} ) ;
62
62
} ) ;
@@ -124,7 +124,7 @@ describe('Sifter', function() {
124
124
var search = sifter . prepareSearch ( 'a' , {
125
125
fields : { field : 'a' } ,
126
126
sort : { field : 'a' } ,
127
- sort_empty : { field : 'a' } ,
127
+ sort_empty : { field : 'a' }
128
128
} ) ;
129
129
assert . equal ( Array . isArray ( search . options . fields ) , true ) ;
130
130
assert . equal ( Array . isArray ( search . options . sort ) , true ) ;
@@ -175,12 +175,12 @@ describe('Sifter', function() {
175
175
var sifter = new Sifter ( [
176
176
{ field : 'aaa' } ,
177
177
{ field : 'add' } ,
178
- { field : 'abb' } ,
178
+ { field : 'abb' }
179
179
] ) ;
180
180
var result = sifter . search ( '' , {
181
181
fields : 'field' ,
182
182
sort : { field : 'field' , direction : 'asc' } ,
183
- sort_empty : { field : 'field' , direction : 'desc' } ,
183
+ sort_empty : { field : 'field' , direction : 'desc' }
184
184
} ) ;
185
185
assert . equal ( result . items [ 0 ] . id , 1 ) ;
186
186
assert . equal ( result . items [ 1 ] . id , 2 ) ;
@@ -190,7 +190,7 @@ describe('Sifter', function() {
190
190
var sifter = new Sifter ( [
191
191
{ field : 'aaa' } ,
192
192
{ field : 'add' } ,
193
- { field : 'abb' } ,
193
+ { field : 'abb' }
194
194
] ) ;
195
195
var result = sifter . search ( '' , {
196
196
fields : 'field' ,
@@ -204,7 +204,7 @@ describe('Sifter', function() {
204
204
var sifter = new Sifter ( [
205
205
{ field : 'aaa' } ,
206
206
{ field : 'add' } ,
207
- { field : 'abb' } ,
207
+ { field : 'abb' }
208
208
] ) ;
209
209
var result = sifter . search ( '' , {
210
210
fields : 'field' ,
@@ -219,7 +219,7 @@ describe('Sifter', function() {
219
219
{ a : 'bbb' , b : 'bbb' } ,
220
220
{ a : 'bbb' , b : 'ccc' } ,
221
221
{ a : 'bbb' , b : 'aaa' } ,
222
- { a : 'aaa' } ,
222
+ { a : 'aaa' }
223
223
] ) ;
224
224
var result = sifter . search ( '' , {
225
225
fields : 'field' ,
@@ -238,7 +238,7 @@ describe('Sifter', function() {
238
238
{ field : 1.0 } ,
239
239
{ field : 12.9 } ,
240
240
{ field : 9.1 } ,
241
- { field : - 9.0 } ,
241
+ { field : - 9.0 }
242
242
] ) ;
243
243
var result = sifter . search ( '' , {
244
244
fields : 'field' ,
@@ -260,7 +260,7 @@ describe('Sifter', function() {
260
260
fields : 'field' ,
261
261
sort : [
262
262
{ field : 'b' , direction : 'desc' } ,
263
- { field : 'a' , direction : 'asc' } ,
263
+ { field : 'a' , direction : 'asc' }
264
264
]
265
265
} ) ;
266
266
assert . equal ( result . items [ 0 ] . id , 2 ) ;
@@ -271,7 +271,7 @@ describe('Sifter', function() {
271
271
it ( 'should add implicit "$score" field when query present' , function ( ) {
272
272
var sifter = new Sifter ( [
273
273
{ field : 'yoo' } ,
274
- { field : 'book' } ,
274
+ { field : 'book' }
275
275
] ) ;
276
276
var result = sifter . search ( 'oo' , {
277
277
fields : 'field' ,
@@ -284,7 +284,7 @@ describe('Sifter', function() {
284
284
var sifter = new Sifter ( [
285
285
{ field : 'boooo' } ,
286
286
{ field : 'yoo' } ,
287
- { field : 'aaa' } ,
287
+ { field : 'aaa' }
288
288
] ) ;
289
289
var result = sifter . search ( 'oo' , {
290
290
filter : false ,
0 commit comments