@@ -141,7 +141,7 @@ describe('Petition', () => {
141
141
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
142
142
} ) ;
143
143
144
- it ( 'can validate Partnership (BBA Regime) contact' , ( ) => {
144
+ it ( 'can validate invalid Partnership (BBA Regime) contact' , ( ) => {
145
145
petition = new Petition ( {
146
146
caseType : 'other' ,
147
147
procedureType : 'Small' ,
@@ -153,6 +153,9 @@ describe('Petition', () => {
153
153
partyType : 'Partnership (BBA Regime)' ,
154
154
} ) ;
155
155
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
156
+ } ) ;
157
+
158
+ it ( 'can validate valid Partnership (BBA Regime) contact' , ( ) => {
156
159
petition = new Petition ( {
157
160
caseType : 'other' ,
158
161
procedureType : 'Small' ,
@@ -185,7 +188,7 @@ describe('Petition', () => {
185
188
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
186
189
} ) ;
187
190
188
- it ( 'can validate Trust' , ( ) => {
191
+ it ( 'can validate invalid Trust contact ' , ( ) => {
189
192
petition = new Petition ( {
190
193
caseType : 'other' ,
191
194
procedureType : 'Small' ,
@@ -197,6 +200,9 @@ describe('Petition', () => {
197
200
partyType : 'Trust' ,
198
201
} ) ;
199
202
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
203
+ } ) ;
204
+
205
+ it ( 'can validate valid Trust contact' , ( ) => {
200
206
petition = new Petition ( {
201
207
caseType : 'other' ,
202
208
procedureType : 'Small' ,
@@ -229,7 +235,7 @@ describe('Petition', () => {
229
235
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
230
236
} ) ;
231
237
232
- it ( 'can validate Conservator contact' , ( ) => {
238
+ it ( 'can validate invalid Conservator contact' , ( ) => {
233
239
petition = new Petition ( {
234
240
caseType : 'other' ,
235
241
procedureType : 'Small' ,
@@ -241,6 +247,9 @@ describe('Petition', () => {
241
247
partyType : 'Conservator' ,
242
248
} ) ;
243
249
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
250
+ } ) ;
251
+
252
+ it ( 'can validate valid Conservator contact' , ( ) => {
244
253
petition = new Petition ( {
245
254
caseType : 'other' ,
246
255
procedureType : 'Small' ,
@@ -273,7 +282,7 @@ describe('Petition', () => {
273
282
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
274
283
} ) ;
275
284
276
- it ( 'can validate Guardian contact' , ( ) => {
285
+ it ( 'can validate invalid Guardian contact' , ( ) => {
277
286
petition = new Petition ( {
278
287
caseType : 'other' ,
279
288
procedureType : 'Small' ,
@@ -285,7 +294,9 @@ describe('Petition', () => {
285
294
partyType : 'Guardian' ,
286
295
} ) ;
287
296
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
297
+ } ) ;
288
298
299
+ it ( 'can validate valid Guardian contact' , ( ) => {
289
300
petition = new Petition ( {
290
301
caseType : 'other' ,
291
302
procedureType : 'Small' ,
@@ -318,7 +329,7 @@ describe('Petition', () => {
318
329
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
319
330
} ) ;
320
331
321
- it ( 'can validate Custodian contact' , ( ) => {
332
+ it ( 'can validate invalid Custodian contact' , ( ) => {
322
333
let petition = new Petition ( {
323
334
caseType : 'other' ,
324
335
procedureType : 'Small' ,
@@ -330,7 +341,9 @@ describe('Petition', () => {
330
341
partyType : 'Custodian' ,
331
342
} ) ;
332
343
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
344
+ } ) ;
333
345
346
+ it ( 'can validate valid Custodian contact' , ( ) => {
334
347
petition = new Petition ( {
335
348
caseType : 'other' ,
336
349
procedureType : 'Small' ,
@@ -363,7 +376,7 @@ describe('Petition', () => {
363
376
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
364
377
} ) ;
365
378
366
- it ( 'can validate Donor contact' , ( ) => {
379
+ it ( 'can validate invalid Donor contact' , ( ) => {
367
380
let petition = new Petition ( {
368
381
caseType : 'other' ,
369
382
procedureType : 'Small' ,
@@ -375,7 +388,9 @@ describe('Petition', () => {
375
388
partyType : 'Donor' ,
376
389
} ) ;
377
390
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
391
+ } ) ;
378
392
393
+ it ( 'can validate valid Donor contact' , ( ) => {
379
394
petition = new Petition ( {
380
395
caseType : 'other' ,
381
396
procedureType : 'Small' ,
@@ -399,7 +414,7 @@ describe('Petition', () => {
399
414
expect ( petition . isValid ( ) ) . toEqual ( true ) ;
400
415
} ) ;
401
416
402
- it ( 'can validate Transferee contact' , ( ) => {
417
+ it ( 'can validate invalid Transferee contact' , ( ) => {
403
418
let petition = new Petition ( {
404
419
caseType : 'other' ,
405
420
procedureType : 'Small' ,
@@ -411,7 +426,9 @@ describe('Petition', () => {
411
426
partyType : 'Transferee' ,
412
427
} ) ;
413
428
expect ( petition . isValid ( ) ) . toEqual ( false ) ;
429
+ } ) ;
414
430
431
+ it ( 'can validate valid Transferee contact' , ( ) => {
415
432
petition = new Petition ( {
416
433
caseType : 'other' ,
417
434
procedureType : 'Small' ,
0 commit comments