Fix two JS tests broken since 8b4842ff21
This commit is contained in:
parent
a0654776f6
commit
299e9e0821
1 changed files with 2 additions and 2 deletions
|
@ -48,7 +48,7 @@ describe('L.Permissions', function () {
|
||||||
var button
|
var button
|
||||||
|
|
||||||
it('should only allow editors', function () {
|
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')
|
button = qs('a.update-map-permissions')
|
||||||
happen.click(button)
|
happen.click(button)
|
||||||
expect(qs('select[name="edit_status"]')).not.to.be.ok
|
expect(qs('select[name="edit_status"]')).not.to.be.ok
|
||||||
|
@ -62,7 +62,7 @@ describe('L.Permissions', function () {
|
||||||
var button
|
var button
|
||||||
|
|
||||||
it('should allow everything', function () {
|
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' }
|
this.map.options.user = { id: 1, url: '/url', name: 'jojo' }
|
||||||
button = qs('a.update-map-permissions')
|
button = qs('a.update-map-permissions')
|
||||||
happen.click(button)
|
happen.click(button)
|
||||||
|
|
Loading…
Reference in a new issue