File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed
Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -502,20 +502,23 @@ describe.skip('Live Test', function () {
502502 } ) ;
503503 assert . strictEqual ( userHasPermission , true ) ;
504504
505- const warrantQuery = Query
506- . selectWarrants ( )
507- . for ( {
508- subject : newUser
509- } )
510- . where ( {
511- subject : newUser
512- } ) ;
513- const warrants = await this . warrant . Warrant . queryWarrants ( warrantQuery , { limit : 100 , page : 1 } ) ;
514-
515- assert . strictEqual ( warrants . length , 1 ) ;
516- assert . strictEqual ( warrants [ 0 ] . objectType , "permission" ) ;
517- assert . strictEqual ( warrants [ 0 ] . objectId , "perm1" ) ;
518- assert . strictEqual ( warrants [ 0 ] . relation , "member" ) ;
505+ // const warrantQuery = Query
506+ // .selectWarrants()
507+ // .for({
508+ // subject: newUser
509+ // })
510+ // .where({
511+ // subject: {
512+ // objectType: "user",
513+ // objectId: newUser.userId
514+ // }
515+ // });
516+ // const warrants = await this.warrant.Warrant.queryWarrants(warrantQuery, { limit: 100, page: 1 });
517+
518+ // assert.strictEqual(warrants.length, 1);
519+ // assert.strictEqual(warrants[0].objectType, "permission");
520+ // assert.strictEqual(warrants[0].objectId, "perm1");
521+ // assert.strictEqual(warrants[0].relation, "member");
519522
520523 await this . warrant . Warrant . delete ( {
521524 object : newPermission ,
You can’t perform that action at this time.
0 commit comments