Taichi Masuyama 3 лет назад
Родитель
Сommit
988b580175
1 измененных файлов с 1 добавлено и 6 удалено
  1. 1 6
      packages/app/test/integration/service/page-grant.test.js

+ 1 - 6
packages/app/test/integration/service/page-grant.test.js

@@ -774,9 +774,9 @@ describe('PageGrantService', () => {
     });
     });
   });
   });
 
 
+  // see: https://dev.growi.org/635a314eac6bcd85cbf359fc about the specification
   describe('canOverwriteDescendants', () => {
   describe('canOverwriteDescendants', () => {
     test('it should return true when update grant is GRANT_PUBLIC', async() => {
     test('it should return true when update grant is GRANT_PUBLIC', async() => {
-      const userA = {};
       const updateGrantInfo = {
       const updateGrantInfo = {
         targetPage: {},
         targetPage: {},
         grant: PageGrant.GRANT_PUBLIC,
         grant: PageGrant.GRANT_PUBLIC,
@@ -790,7 +790,6 @@ describe('PageGrantService', () => {
       expect(res).toBe(true);
       expect(res).toBe(true);
     });
     });
     test('it should return true when all descendant pages are granted by the operator', async() => {
     test('it should return true when all descendant pages are granted by the operator', async() => {
-      const userA = {};
       const updateGrantInfo = {
       const updateGrantInfo = {
         targetPage: {},
         targetPage: {},
         grant: PageGrant.GRANT_OWNER,
         grant: PageGrant.GRANT_OWNER,
@@ -806,7 +805,6 @@ describe('PageGrantService', () => {
     test(`it should return true when update grant is GRANT_USER_GROUP
     test(`it should return true when update grant is GRANT_USER_GROUP
     , all user groups of descendants are the children or itself of the update user group
     , all user groups of descendants are the children or itself of the update user group
     , and all users of descendants belong to the update user group`, async() => {
     , and all users of descendants belong to the update user group`, async() => {
-      const userA = {};
       const userGroupAB = {};
       const userGroupAB = {};
       const updateGrantInfo = {
       const updateGrantInfo = {
         targetPage: {},
         targetPage: {},
@@ -823,7 +821,6 @@ describe('PageGrantService', () => {
     test(`it should return false when some of descendants is not granted
     test(`it should return false when some of descendants is not granted
     , update grant is GRANT_USER_GROUP
     , update grant is GRANT_USER_GROUP
     , and some of user groups of descendants are not children or itself of the update user group`, async() => {
     , and some of user groups of descendants are not children or itself of the update user group`, async() => {
-      const userA = {};
       const userGroupAB = {};
       const userGroupAB = {};
       const updateGrantInfo = {
       const updateGrantInfo = {
         targetPage: {},
         targetPage: {},
@@ -840,7 +837,6 @@ describe('PageGrantService', () => {
     test(`it should return false when some of descendants is not granted
     test(`it should return false when some of descendants is not granted
     , update grant is GRANT_USER_GROUP
     , update grant is GRANT_USER_GROUP
     , and some of users of descendants does NOT belong to the update user group`, async() => {
     , and some of users of descendants does NOT belong to the update user group`, async() => {
-      const userA = {};
       const updateGrantInfo = {
       const updateGrantInfo = {
         targetPage: {},
         targetPage: {},
         grant: PageGrant.GRANT_USER_GROUP,
         grant: PageGrant.GRANT_USER_GROUP,
@@ -854,7 +850,6 @@ describe('PageGrantService', () => {
       expect(res).toBe(false);
       expect(res).toBe(false);
     });
     });
     test('it should return false when some of descendants is not granted and update grant is GRANT_OWNER', async() => {
     test('it should return false when some of descendants is not granted and update grant is GRANT_OWNER', async() => {
-      const userA = {};
       const updateGrantInfo = {
       const updateGrantInfo = {
         targetPage: {},
         targetPage: {},
         grant: PageGrant.GRANT_OWNER,
         grant: PageGrant.GRANT_OWNER,