From 299e9e0821cfaa1143e99abebcdcd7c4eae325f5 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 20 Jul 2023 14:19:50 +0200 Subject: [PATCH] Fix two JS tests broken since 8b4842ff212541278957d74f86e886fb5c4d082f --- umap/static/umap/test/Permissions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/umap/static/umap/test/Permissions.js b/umap/static/umap/test/Permissions.js index 2b5cc14a..5f4364ac 100644 --- a/umap/static/umap/test/Permissions.js +++ b/umap/static/umap/test/Permissions.js @@ -48,7 +48,7 @@ describe('L.Permissions', function () { var button it('should only allow editors', function () { - this.map.options.permissions.owner = { id: 1, url: '/url', name: 'jojo' } + this.map.permissions.options.owner = { id: 1, url: '/url', name: 'jojo' } button = qs('a.update-map-permissions') happen.click(button) expect(qs('select[name="edit_status"]')).not.to.be.ok @@ -62,7 +62,7 @@ describe('L.Permissions', function () { var button it('should allow everything', function () { - this.map.options.permissions.owner = { id: 1, url: '/url', name: 'jojo' } + this.map.permissions.options.owner = { id: 1, url: '/url', name: 'jojo' } this.map.options.user = { id: 1, url: '/url', name: 'jojo' } button = qs('a.update-map-permissions') happen.click(button)