File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1488,12 +1488,12 @@ describe("Users", function () {
1488
1488
} ) ;
1489
1489
1490
1490
it ( "should handle errors gracefully if getUsersWithIncompleteTasks fails" , async function ( ) {
1491
- Sinon . stub ( userService , "getUsersWithIncompleteTasks" ) . rejects ( new Error ( INTERNAL_SERVER_ERROR ) ) ;
1491
+ Sinon . stub ( userService , "getUsersWithIncompleteTasks" ) . rejects ( new Error ( SOMETHING_WENT_WRONG ) ) ;
1492
1492
1493
1493
const res = await chai . request ( app ) . get ( "/users?departed=true&dev=true" ) ;
1494
1494
1495
- expect ( res ) . to . have . status ( 500 ) ;
1496
- expect ( res . body . message ) . to . be . equal ( INTERNAL_SERVER_ERROR ) ;
1495
+ expect ( res ) . to . have . status ( 503 ) ;
1496
+ expect ( res . body . message ) . to . be . equal ( SOMETHING_WENT_WRONG ) ;
1497
1497
} ) ;
1498
1498
} ) ;
1499
1499
You can’t perform that action at this time.
0 commit comments