-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinject.output.js
More file actions
30 lines (24 loc) · 1.13 KB
/
inject.output.js
File metadata and controls
30 lines (24 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Service | FooBar', function(hooks) {
setupTest(hooks);
test('it exists', function(assert) {
this.foo = this.owner.lookup('service:foo');
this.bar = this.owner.lookup('service:foo');
});
test('it works for controllers', function(assert) {
this.foo = this.owner.lookup('controller:foo');
this.bar = this.owner.lookup('controller:foo');
});
test('handles dasherized names', function(assert) {
this['foo-bar'] = this.owner.lookup('service:foo-bar');
});
test('handle cuted (long) services names', function(assert) {
this['foo-bar-with-a-very-long-name'] = this.owner.lookup('service:foo-bar-with-a-very-long-name');
this['foo-bar-with-a-very-long-name'] = this.owner.lookup('service:foo-bar-with-a-very-long-name');
});
test('handle cuted (long) controllers names', function(assert) {
this['foo-bar-with-a-very-long-name'] = this.owner.lookup('controller:foo-bar-with-a-very-long-name');
this['foo-bar-with-a-very-long-name'] = this.owner.lookup('controller:foo-bar-with-a-very-long-name');
});
});