Correct tests fixtures for options permissions
This commit is contained in:
parent
c5b19728f0
commit
23053a26fc
2 changed files with 3 additions and 3 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.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')
|
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.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' }
|
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)
|
||||||
|
|
|
@ -88,7 +88,7 @@
|
||||||
background-color: white;
|
background-color: white;
|
||||||
box-shadow: 0px 0px 8px 0px black;
|
box-shadow: 0px 0px 8px 0px black;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
display: block;
|
display: none;
|
||||||
}
|
}
|
||||||
#mocha-stats {
|
#mocha-stats {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Reference in a new issue