Skip to content

Commit 7d4f19b

Browse files
committed
Comment out warrant query tests
1 parent 57a1a56 commit 7d4f19b

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

test/LiveTest.spec.js

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)