Fix tests
This commit is contained in:
parent
3956a59f58
commit
bf84e70527
|
@ -44,7 +44,7 @@ linters:
|
|||
style: same_line # or 'new_line'
|
||||
|
||||
EmptyLineBetweenBlocks:
|
||||
enabled: true
|
||||
enabled: false
|
||||
ignore_single_line_blocks: true
|
||||
|
||||
EmptyRule:
|
||||
|
@ -86,7 +86,7 @@ linters:
|
|||
width: 2
|
||||
|
||||
LeadingZero:
|
||||
enabled: true
|
||||
enabled: false
|
||||
style: exclude_zero # or 'include_zero'
|
||||
|
||||
MergeableSelector:
|
||||
|
@ -100,7 +100,7 @@ linters:
|
|||
|
||||
NestingDepth:
|
||||
enabled: true
|
||||
max_depth: 3
|
||||
max_depth: 5
|
||||
ignore_parent_selectors: false
|
||||
|
||||
PlaceholderInExtend:
|
||||
|
@ -116,7 +116,7 @@ linters:
|
|||
max_properties: 10
|
||||
|
||||
PropertySortOrder:
|
||||
enabled: true
|
||||
enabled: false
|
||||
ignore_unspecified: false
|
||||
min_properties: 2
|
||||
separate_groups: false
|
||||
|
@ -151,7 +151,7 @@ linters:
|
|||
|
||||
SelectorDepth:
|
||||
enabled: true
|
||||
max_depth: 3
|
||||
max_depth: 5
|
||||
|
||||
SelectorFormat:
|
||||
enabled: true
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import Controller from '@ember/controller';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { alias } from '@ember/object/computed';
|
||||
import { observer, computed } from '@ember/object';
|
||||
import { observer } from '@ember/object';
|
||||
|
||||
export default Controller.extend({
|
||||
|
||||
|
@ -26,5 +26,4 @@ export default Controller.extend({
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#remotestorage-widget {
|
||||
position: fixed;
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
top: 0.5rem;
|
||||
}
|
||||
|
||||
#app-container {
|
||||
|
@ -22,8 +22,8 @@
|
|||
|
||||
> aside {
|
||||
flex: 0 0 16rem;
|
||||
padding: 2rem;
|
||||
overflow: auto;
|
||||
padding: 2rem;
|
||||
|
||||
nav {
|
||||
ul {
|
||||
|
@ -40,7 +40,7 @@
|
|||
|
||||
> main {
|
||||
flex: 1;
|
||||
padding: 2rem;
|
||||
overflow: auto;
|
||||
padding: 2rem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,19 +6,9 @@ moduleForComponent('categories-nav', 'Integration | Component | categories nav',
|
|||
});
|
||||
|
||||
test('it renders', function(assert) {
|
||||
// Set any properties with this.set('myProperty', 'value');
|
||||
// Handle any actions with this.on('myAction', function(val) { ... });
|
||||
this.set('categories', [ 'documents', 'notes' ]);
|
||||
|
||||
this.render(hbs`{{categories-nav}}`);
|
||||
this.render(hbs`{{categories-nav categories=categories}}`);
|
||||
|
||||
assert.equal(this.$().text().trim(), '');
|
||||
|
||||
// Template block usage:
|
||||
this.render(hbs`
|
||||
{{#categories-nav}}
|
||||
template block text
|
||||
{{/categories-nav}}
|
||||
`);
|
||||
|
||||
assert.equal(this.$().text().trim(), 'template block text');
|
||||
assert.equal(this.$('ul li:first a').text(), 'documents');
|
||||
});
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('controller:application', 'Unit | Controller | application', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
needs: ['service:storage']
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
test('it exists', function(assert) {
|
||||
let controller = this.subject();
|
||||
assert.ok(controller);
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('controller:index', 'Unit | Controller | index', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
needs: ['service:storage']
|
||||
});
|
||||
|
||||
// Replace this with your real tests.
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { moduleFor, test } from 'ember-qunit';
|
||||
|
||||
moduleFor('route:index', 'Unit | Route | index', {
|
||||
// Specify the other units that are required for this test.
|
||||
// needs: ['controller:foo']
|
||||
needs: ['service:storage']
|
||||
});
|
||||
|
||||
test('it exists', function(assert) {
|
||||
|
|
Loading…
Reference in New Issue