@@ -28,7 +28,7 @@ QUnit.module("can-query-logic");
28
28
29
29
30
30
31
- QUnit . test ( "union" , function ( ) {
31
+ QUnit . test ( "union" , function ( assert ) {
32
32
var unionResult = algebra . union ( {
33
33
filter : {
34
34
name : "Ramiya"
@@ -39,7 +39,7 @@ QUnit.test("union", function() {
39
39
}
40
40
} ) ;
41
41
42
- QUnit . deepEqual ( unionResult , {
42
+ assert . deepEqual ( unionResult , {
43
43
filter : {
44
44
name : {
45
45
$in : [ "Ramiya" , "Bohdi" ]
@@ -48,7 +48,7 @@ QUnit.test("union", function() {
48
48
} ) ;
49
49
} ) ;
50
50
51
- QUnit . test ( "difference" , function ( ) {
51
+ QUnit . test ( "difference" , function ( assert ) {
52
52
var differenceResult = algebra . difference ( {
53
53
filter : {
54
54
name : {
@@ -61,7 +61,7 @@ QUnit.test("difference", function() {
61
61
}
62
62
} ) ;
63
63
64
- QUnit . deepEqual ( differenceResult , {
64
+ assert . deepEqual ( differenceResult , {
65
65
filter : {
66
66
name : "Ramiya" ,
67
67
}
@@ -70,7 +70,7 @@ QUnit.test("difference", function() {
70
70
71
71
} ) ;
72
72
73
- QUnit . test ( "subset" , function ( ) {
73
+ QUnit . test ( "subset" , function ( assert ) {
74
74
var subsetResult = algebra . isSubset ( {
75
75
filter : {
76
76
name : "Bohdi"
@@ -83,10 +83,10 @@ QUnit.test("subset", function() {
83
83
}
84
84
} ) ;
85
85
86
- QUnit . deepEqual ( subsetResult , true ) ;
86
+ assert . deepEqual ( subsetResult , true ) ;
87
87
} ) ;
88
88
89
- QUnit . test ( "isMember" , function ( ) {
89
+ QUnit . test ( "isMember" , function ( assert ) {
90
90
var hasResult = algebra . isMember ( {
91
91
filter : {
92
92
name : "Bohdi"
@@ -95,10 +95,10 @@ QUnit.test("isMember", function() {
95
95
name : "Bohdi"
96
96
} ) ;
97
97
98
- QUnit . deepEqual ( hasResult , true ) ;
98
+ assert . deepEqual ( hasResult , true ) ;
99
99
} ) ;
100
100
101
- QUnit . test ( "filterMembers basics" , function ( ) {
101
+ QUnit . test ( "filterMembers basics" , function ( assert ) {
102
102
var subset = algebra . filterMembers ( {
103
103
filter : {
104
104
name : {
@@ -119,7 +119,7 @@ QUnit.test("filterMembers basics", function() {
119
119
}
120
120
] ) ;
121
121
122
- QUnit . deepEqual ( subset , [ {
122
+ assert . deepEqual ( subset , [ {
123
123
name : "Bohdi"
124
124
} ,
125
125
{
@@ -151,7 +151,7 @@ QUnit.test("filterMembers basics", function() {
151
151
}
152
152
] ) ;
153
153
154
- QUnit . deepEqual ( subset , [ {
154
+ assert . deepEqual ( subset , [ {
155
155
name : "Payal"
156
156
} ,
157
157
{
@@ -161,7 +161,7 @@ QUnit.test("filterMembers basics", function() {
161
161
} ) ;
162
162
163
163
164
- QUnit . test ( "unionMembers basics" , function ( ) {
164
+ QUnit . test ( "unionMembers basics" , function ( assert ) {
165
165
var union = algebra . unionMembers ( {
166
166
filter : {
167
167
name : "Bohdi"
@@ -178,7 +178,7 @@ QUnit.test("unionMembers basics", function() {
178
178
id : 2
179
179
} , ] ) ;
180
180
181
- QUnit . deepEqual ( union , [ {
181
+ assert . deepEqual ( union , [ {
182
182
name : "Bohdi" ,
183
183
id : 1
184
184
} ,
@@ -189,10 +189,10 @@ QUnit.test("unionMembers basics", function() {
189
189
] ) ;
190
190
} ) ;
191
191
192
- QUnit . test ( "count basics" , function ( ) {
192
+ QUnit . test ( "count basics" , function ( assert ) {
193
193
194
- QUnit . equal ( algebra . count ( { } ) , Infinity ) ;
195
- QUnit . equal ( algebra . count ( {
194
+ assert . equal ( algebra . count ( { } ) , Infinity ) ;
195
+ assert . equal ( algebra . count ( {
196
196
page : {
197
197
start : 1 ,
198
198
end : 2
@@ -202,7 +202,7 @@ QUnit.test("count basics", function() {
202
202
203
203
} ) ;
204
204
205
- QUnit . test ( 'index basics' , function ( ) {
205
+ QUnit . test ( 'index basics' , function ( assert ) {
206
206
207
207
var index = algebra . index ( {
208
208
sort : "name"
@@ -222,7 +222,7 @@ QUnit.test('index basics', function() {
222
222
} ] , {
223
223
name : "k"
224
224
} ) ;
225
- equal ( index , 2 ) ;
225
+ assert . equal ( index , 2 ) ;
226
226
227
227
index = algebra . index ( {
228
228
sort : "-name"
@@ -242,7 +242,7 @@ QUnit.test('index basics', function() {
242
242
} ] . reverse ( ) , {
243
243
name : "k"
244
244
} ) ;
245
- equal ( index , 2 ) ;
245
+ assert . equal ( index , 2 ) ;
246
246
247
247
index = algebra . index ( { } ,
248
248
[ {
@@ -262,7 +262,7 @@ QUnit.test('index basics', function() {
262
262
name : "k"
263
263
} ) ;
264
264
265
- equal ( index , 0 ) ;
265
+ assert . equal ( index , 0 ) ;
266
266
267
267
268
268
index = algebra . index ( { } ,
@@ -282,7 +282,7 @@ QUnit.test('index basics', function() {
282
282
name : "k"
283
283
} ) ;
284
284
285
- equal ( index , undefined , "no value if no id" ) ;
285
+ assert . equal ( index , undefined , "no value if no id" ) ;
286
286
287
287
var TODO_id = canReflect . assignSymbols ( { } , {
288
288
"can.getSchema" : function ( ) {
@@ -318,13 +318,13 @@ QUnit.test('index basics', function() {
318
318
_id : 2
319
319
} ) ;
320
320
321
- equal ( index , 2 ) ;
321
+ assert . equal ( index , 2 ) ;
322
322
323
323
//var algebra = new set.Algebra(set.props.id("id"));
324
324
325
325
} ) ;
326
326
327
- QUnit . test ( "filterMembers with reverse sort" , function ( ) {
327
+ QUnit . test ( "filterMembers with reverse sort" , function ( assert ) {
328
328
var sortedMembers = algebra . filterMembers ( {
329
329
sort : "-name"
330
330
} ,
@@ -342,7 +342,7 @@ QUnit.test("filterMembers with reverse sort", function() {
342
342
name : "s"
343
343
} ] ) ;
344
344
345
- QUnit . deepEqual ( sortedMembers ,
345
+ assert . deepEqual ( sortedMembers ,
346
346
[ {
347
347
id : 2 ,
348
348
name : "z"
@@ -409,11 +409,11 @@ QUnit.test("Value returned by makeEnum is constructorLike", function(assert) {
409
409
assert . ok ( pass , "Status is constructor like" ) ;
410
410
} ) ;
411
411
412
- QUnit . test ( "can call low-level APIs from the outside" , function ( ) {
412
+ QUnit . test ( "can call low-level APIs from the outside" , function ( assert ) {
413
413
var gt1 = new QueryLogic . GreaterThan ( 1 ) ;
414
414
var lte1 = new QueryLogic . LessThanEqual ( 1 ) ;
415
415
416
- QUnit . equal ( QueryLogic . intersection ( gt1 , lte1 ) , QueryLogic . EMPTY ) ;
416
+ assert . equal ( QueryLogic . intersection ( gt1 , lte1 ) , QueryLogic . EMPTY ) ;
417
417
418
418
419
419
var isGtJustinAndGt35 = new QueryLogic . KeysAnd ( {
@@ -424,6 +424,6 @@ QUnit.test("can call low-level APIs from the outside", function() {
424
424
age : new QueryLogic . GreaterThan ( 25 )
425
425
} ) ;
426
426
427
- QUnit . deepEqual ( QueryLogic . union ( isGtJustinAndGt35 , isGt25 ) , isGt25 , "fewer clauses" ) ;
427
+ assert . deepEqual ( QueryLogic . union ( isGtJustinAndGt35 , isGt25 ) , isGt25 , "fewer clauses" ) ;
428
428
429
429
} ) ;
0 commit comments