File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -265,12 +265,11 @@ describe("Tasks", function () {
265
265
const searchTerm = "task" ;
266
266
chai
267
267
. request ( app )
268
- . get ( ` /tasks?q=searchTerm:" ${ encodeURIComponent ( searchTerm ) } "` )
268
+ . get ( " /tasks?q=searchTerm:task" )
269
269
. end ( ( err , res ) => {
270
270
if ( err ) {
271
271
return done ( err ) ;
272
272
}
273
-
274
273
expect ( res ) . to . have . status ( 200 ) ;
275
274
expect ( res . body ) . to . be . a ( "object" ) ;
276
275
expect ( res . body . message ) . to . equal ( "Filter tasks returned successfully!" ) ;
@@ -285,10 +284,9 @@ describe("Tasks", function () {
285
284
} ) ;
286
285
} ) ;
287
286
it ( "Should get tasks filtered by search term and handle no tasks found" , function ( done ) {
288
- const searchTerm = " " ;
289
287
chai
290
288
. request ( app )
291
- . get ( `/tasks?q=searchTerm:" ${ encodeURIComponent ( searchTerm ) } " ` )
289
+ . get ( `/tasks?q=searchTerm:random1 ` )
292
290
. end ( ( err , res ) => {
293
291
if ( err ) {
294
292
return done ( err ) ;
You can’t perform that action at this time.
0 commit comments