@@ -331,8 +331,7 @@ describe("Task Based Status Updates", function () {
331
331
await cleanDb ( ) ;
332
332
} ) ;
333
333
334
- // eslint-disable-next-line mocha/no-skipped-tests
335
- it . skip ( "should return the correct results when there are no errors" , async function ( ) {
334
+ it ( "should return the correct results when there are no errors" , async function ( ) {
336
335
const res = await chai
337
336
. request ( app )
338
337
. patch ( `/users/status/batch` )
@@ -387,8 +386,7 @@ describe("Task Based Status Updates", function () {
387
386
expect ( userStatus009Data . currentStatus . state ) . to . equal ( userState . ACTIVE ) ;
388
387
} ) ;
389
388
390
- // eslint-disable-next-line mocha/no-skipped-tests
391
- it . skip ( "should throw an error if users firestore batch operations fail" , async function ( ) {
389
+ it ( "should throw an error if users firestore batch operations fail" , async function ( ) {
392
390
sinon . stub ( firestore , "batch" ) . throws ( new Error ( "something went wrong" ) ) ;
393
391
394
392
const res = await chai
@@ -463,8 +461,7 @@ describe("Task Based Status Updates", function () {
463
461
] ) ;
464
462
} ) ;
465
463
466
- // eslint-disable-next-line mocha/no-skipped-tests
467
- it . skip ( "should throw an error when an error occurs" , async function ( ) {
464
+ it ( "should throw an error when an error occurs" , async function ( ) {
468
465
sinon
469
466
. stub ( userStatusModelFunction , "getTaskBasedUsersStatus" )
470
467
. throws (
@@ -474,7 +471,7 @@ describe("Task Based Status Updates", function () {
474
471
) ;
475
472
const response = await chai
476
473
. request ( app )
477
- . get ( `/users/status?batch =true` )
474
+ . get ( `/users/status?aggregate =true` )
478
475
. set ( "cookie" , `${ cookieName } =${ superUserJwt } ` ) ;
479
476
expect ( response . status ) . to . equal ( 500 ) ;
480
477
expect ( response . body . message ) . to . equal (
0 commit comments