Improve code based on linting
This commit is contained in:
@@ -46,7 +46,7 @@ export default class SettingsPane extends Component {
|
|||||||
</option>
|
</option>
|
||||||
<option
|
<option
|
||||||
value="false"
|
value="false"
|
||||||
selected={{if (not this.settings.mapKinetic) "selected"}}
|
selected={{unless this.settings.mapKinetic "selected"}}
|
||||||
>
|
>
|
||||||
Off
|
Off
|
||||||
</option>
|
</option>
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ module('Acceptance | navigation', function (hooks) {
|
|||||||
|
|
||||||
// Click the Close (X) button
|
// Click the Close (X) button
|
||||||
await click('.close-btn');
|
await click('.close-btn');
|
||||||
await settled();
|
|
||||||
|
|
||||||
assert.strictEqual(currentURL(), '/', 'Returned to index');
|
assert.strictEqual(currentURL(), '/', 'Returned to index');
|
||||||
assert.false(mapUi.returnToSearch, 'Flag is reset after closing sidebar');
|
assert.false(mapUi.returnToSearch, 'Flag is reset after closing sidebar');
|
||||||
@@ -95,7 +95,7 @@ module('Acceptance | navigation', function (hooks) {
|
|||||||
assert.ok(currentURL().includes('/place/'), 'Visited place directly');
|
assert.ok(currentURL().includes('/place/'), 'Visited place directly');
|
||||||
|
|
||||||
await click('.back-btn');
|
await click('.back-btn');
|
||||||
await settled();
|
|
||||||
|
|
||||||
assert.strictEqual(currentURL(), '/', 'Returned to index/map');
|
assert.strictEqual(currentURL(), '/', 'Returned to index/map');
|
||||||
assert.true(backStub.notCalled, 'window.history.back() was NOT called');
|
assert.true(backStub.notCalled, 'window.history.back() was NOT called');
|
||||||
|
|||||||
Reference in New Issue
Block a user