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