@@ -29,12 +29,12 @@ defineValidate(NoConstraints);
2929
3030QUnit . module ( "can-define-validate-validatejs" ) ;
3131
32- QUnit . test ( "when constraints missing" , function ( ) {
32+ QUnit . test ( "when constraints missing" , function ( assert ) {
3333 var locator = new NoConstraints ( ) ;
3434 assert . notOk ( locator . errors ( ) , "runs but returns no errors" ) ;
3535} ) ;
3636
37- QUnit . test ( "errors is readable when wrapped as compute" , function ( ) {
37+ QUnit . test ( "errors is readable when wrapped as compute" , function ( assert ) {
3838 var locator = new Locator ( { city : "angier" , state : "NC" } ) ;
3939 var errors = compute ( function ( ) {
4040 return locator . errors ( ) ;
@@ -60,7 +60,7 @@ QUnit.test("errors is readable when wrapped as compute", function() {
6060 locator . state = "Juan" ;
6161} ) ;
6262
63- QUnit . test ( "errors is readable when wrapped as compute" , function ( ) {
63+ QUnit . test ( "errors is readable when wrapped as compute" , function ( assert ) {
6464 var locator = new Locator ( { city : "angier" , state : "NC" , zipCode : 27501 } ) ;
6565 var errors = compute ( function ( ) {
6666 return locator . errors ( ) ;
@@ -77,7 +77,7 @@ QUnit.test("errors is readable when wrapped as compute", function() {
7777 locator . state = "CA" ;
7878} ) ;
7979
80- QUnit . test ( "calling errors returns object" , function ( ) {
80+ QUnit . test ( "calling errors returns object" , function ( assert ) {
8181 var locator = new Locator ( { city : "angier" } ) ;
8282 var expectedErrors = [
8383 {
@@ -92,7 +92,7 @@ QUnit.test("calling errors returns object", function() {
9292 assert . deepEqual ( locator . errors ( ) , expectedErrors , "Returns error type array" ) ;
9393} ) ;
9494
95- QUnit . test ( "calling errors with string returns error for that key" , function ( ) {
95+ QUnit . test ( "calling errors with string returns error for that key" , function ( assert ) {
9696 var locator = new Locator ( { city : "angier" } ) ;
9797 var errors = locator . errors ( "state" ) ;
9898 assert . deepEqual ( errors , [
@@ -105,14 +105,14 @@ QUnit.test("calling errors with string returns error for that key", function() {
105105
106106QUnit . test (
107107 "calling errors with string returns undefined when no errors are set" ,
108- function ( ) {
108+ function ( assert ) {
109109 var locator = new Locator ( { city : "angier" , state : "NC" , zipCode : 27501 } ) ;
110110 var errors = locator . errors ( "state" ) ;
111111 assert . notOk ( errors , "Errors is undefined" ) ;
112112 }
113113) ;
114114
115- QUnit . test ( "errors with object returns errors for requested keys" , function ( ) {
115+ QUnit . test ( "errors with object returns errors for requested keys" , function ( assert ) {
116116 var locator = new Locator ( { city : "angier" } ) ;
117117 var expectedErrors = [
118118 {
@@ -127,7 +127,7 @@ QUnit.test("errors with object returns errors for requested keys", function() {
127127 assert . deepEqual ( locator . errors ( "state" , "zipCode" ) , expectedErrors ) ;
128128} ) ;
129129
130- QUnit . test ( "testSet a single value" , function ( ) {
130+ QUnit . test ( "testSet a single value" , function ( assert ) {
131131 var locator = new Locator ( { city : "angier" , state : "nc" , zipCode : 27501 } ) ;
132132 var expectedErrors = [
133133 {
@@ -144,7 +144,7 @@ QUnit.test("testSet a single value", function() {
144144 assert . notOk ( locator . errors ( ) , "Does not set errors on map" ) ;
145145} ) ;
146146
147- QUnit . test ( "testSet many values" , function ( ) {
147+ QUnit . test ( "testSet many values" , function ( assert ) {
148148 var locator = new Locator ( { city : "angier" , state : "nc" , zipCode : 27501 } ) ;
149149 var errors = locator . testSet ( { state : "" , zipCode : "" } ) ;
150150 var expectedErrors = [
@@ -169,7 +169,7 @@ QUnit.test("testSet many values", function() {
169169 assert . notOk ( locator . errors ( ) , "Does not set errors on map" ) ;
170170} ) ;
171171
172- QUnit . test ( "testSet many values, with clean map" , function ( ) {
172+ QUnit . test ( "testSet many values, with clean map" , function ( assert ) {
173173 var locator = new Locator ( { city : "angier" , state : "nc" , zipCode : 27501 } ) ;
174174 var errors = locator . testSet ( { state : "" } , true ) ;
175175 var expectedErrors = [
0 commit comments