Skip to content

Commit f7145c4

Browse files
committed
fix(generate): missing string-utils and empty test
1 parent a6cf825 commit f7145c4

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"broccoli-writer": "^0.1.1",
4040
"chalk": "^1.1.1",
4141
"ember-cli": "2.4.2",
42+
"ember-cli-string-utils": "^1.0.0",
4243
"exit": "^0.1.2",
4344
"fs-extra": "^0.26.6",
4445
"glob": "^7.0.3",

tests/acceptance/generate-component.spec.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ describe('Acceptance: ng generate component', function () {
138138
expect(existsSync(testPath)).to.equal(false);
139139
});
140140
});
141-
141+
142142
it('ng generate component mycomp will prefix selector', () => {
143143
return ng(['generate', 'component', 'mycomp'])
144144
.then(() => {
@@ -148,7 +148,7 @@ describe('Acceptance: ng generate component', function () {
148148
expect(contents.indexOf('selector: \'app-mycomp\'') === -1).to.equal(false);
149149
});
150150
});
151-
151+
152152
it('ng generate component mycomp --no-prefix will not prefix selector', () => {
153153
return ng(['generate', 'component', 'mycomp', '--no-prefix'])
154154
.then(() => {
@@ -158,29 +158,27 @@ describe('Acceptance: ng generate component', function () {
158158
expect(contents.indexOf('selector: \'mycomp\'') === -1).to.equal(false);
159159
});
160160
});
161-
161+
162162
it('ng generate component myComp will succeed', () => {
163163
return ng(['generate', 'component', 'myComp'])
164164
.then(() => {
165165
var testPath = path.join(root, 'tmp', 'foo', 'src', 'client', 'app', 'my-comp', 'my-comp.component.ts');
166166
expect(existsSync(testPath)).to.equal(true);
167167
});
168168
});
169-
169+
170170
it('ng generate component my-comp --inline-template', function () {
171171
return ng(['generate', 'component', 'my-comp', '--inline-template']).then(() => {
172172
var testPath = path.join(root, 'tmp', 'foo', 'src', 'client', 'app', 'my-comp', 'my-comp.component.html');
173173
expect(existsSync(testPath)).to.equal(false);
174174
});
175175
});
176-
176+
177177
it('ng generate component my-comp --inline-style', function () {
178178
return ng(['generate', 'component', 'my-comp', '--inline-style']).then(() => {
179179
var testPath = path.join(root, 'tmp', 'foo', 'src', 'client', 'app', 'my-comp', 'my-comp.component.css');
180180
expect(existsSync(testPath)).to.equal(false);
181181
});
182182
});
183-
184-
it('should ', () => {
185-
});
183+
186184
});

0 commit comments

Comments
 (0)