From 23053a26fc787c52f85d4ea70849ea2b2507829f Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 26 May 2023 14:12:08 -0400 Subject: [PATCH] Correct tests fixtures for options permissions --- umap/static/umap/test/Permissions.js | 4 ++-- umap/static/umap/test/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/test/Permissions.js b/umap/static/umap/test/Permissions.js index 5f4364ac..2b5cc14a 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.permissions.options.owner = { id: 1, url: '/url', name: 'jojo' } + this.map.options.permissions.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.permissions.options.owner = { id: 1, url: '/url', name: 'jojo' } + this.map.options.permissions.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) diff --git a/umap/static/umap/test/index.html b/umap/static/umap/test/index.html index d4cab195..dd9685e0 100644 --- a/umap/static/umap/test/index.html +++ b/umap/static/umap/test/index.html @@ -88,7 +88,7 @@ background-color: white; box-shadow: 0px 0px 8px 0px black; overflow-y: auto; - display: block; + display: none; } #mocha-stats { position: absolute;