@@ -236,8 +236,8 @@ describe('loopback json api belongsTo relationships', function () {
236236 } ) ;
237237 } ) ;
238238
239- it . skip ( 'should return a 400 Bad Request error if a non existent relationship is specified.' , function ( done ) {
240- request ( app ) . get ( '/comments?filter={" include":" doesnotexist"} ' )
239+ it ( 'should return a 400 Bad Request error if a non existent relationship is specified.' , function ( done ) {
240+ request ( app ) . get ( '/comments?filter[ include]= doesnotexist' )
241241 . expect ( 400 )
242242 . end ( done ) ;
243243 } ) ;
@@ -252,7 +252,7 @@ describe('loopback json api belongsTo relationships', function () {
252252 } ) ;
253253 } ) ;
254254
255- it . skip ( 'should return a 400 Bad Request error if a non existent relationship is specified using JSON API syntax.' , function ( done ) {
255+ it ( 'should return a 400 Bad Request error if a non existent relationship is specified using JSON API syntax.' , function ( done ) {
256256 request ( app ) . get ( '/comments?include=doesnotexist' )
257257 . expect ( 400 )
258258 . end ( done ) ;
@@ -311,8 +311,8 @@ describe('loopback json api belongsTo relationships', function () {
311311 } ) ;
312312 } ) ;
313313
314- it . skip ( 'should return a 400 Bad Request error if a non existent relationship is specified.' , function ( done ) {
315- request ( app ) . get ( '/comments/1?filter={" include":" doesnotexist"} ' )
314+ it ( 'should return a 400 Bad Request error if a non existent relationship is specified.' , function ( done ) {
315+ request ( app ) . get ( '/comments/1?filter[ include]= doesnotexist' )
316316 . expect ( 400 )
317317 . end ( done ) ;
318318 } ) ;
@@ -327,7 +327,7 @@ describe('loopback json api belongsTo relationships', function () {
327327 } ) ;
328328 } ) ;
329329
330- it . skip ( 'should return a 400 Bad Request error if a non existent relationship is specified using JSON API syntax.' , function ( done ) {
330+ it ( 'should return a 400 Bad Request error if a non existent relationship is specified using JSON API syntax.' , function ( done ) {
331331 request ( app ) . get ( '/comments/1?include=doesnotexist' )
332332 . expect ( 400 )
333333 . end ( done ) ;
0 commit comments