-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinject.input.js
More file actions
34 lines (28 loc) · 963 Bytes
/
inject.input.js
File metadata and controls
34 lines (28 loc) · 963 Bytes
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
31
32
33
34
import { moduleFor, test } from 'ember-qunit';
moduleFor('service:foo-bar', 'Unit | Service | FooBar', {
});
test('it exists', function(assert) {
this.inject.service('foo');
this.inject.service('foo', { as: 'bar' });
});
test('it works for controllers', function(assert) {
this.inject.controller('foo');
this.inject.controller('foo', { as: 'bar' });
});
test('handles dasherized names', function(assert) {
this.inject.service('foo-bar');
});
test('handle cuted (long) services names', function(assert) {
this.inject.service('foo-bar-with-a' +
'-very-long-name');
this.inject.service('foo-bar-with-a' +
'-very-long-name', { as: 'foo-bar-with-a' +
'-very-long-name' });
});
test('handle cuted (long) controllers names', function(assert) {
this.inject.controller('foo-bar-with-a' +
'-very-long-name');
this.inject.controller('foo-bar-with-a' +
'-very-long-name', { as: 'foo-bar-with-a' +
'-very-long-name' });
});