Skip to content

Commit 20cfbe6

Browse files
committed
test(gen:endpoint): add other 2 lint tests, file assert stubs
1 parent 61eb160 commit 20cfbe6

1 file changed

Lines changed: 22 additions & 4 deletions

File tree

src/test/endpoint.test.js

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,26 +175,44 @@ describe('angular-fullstack:endpoint', function() {
175175
describe('with a generated capitalized endpont', function() {
176176
var dir;
177177
beforeEach(function() {
178-
return runEndpointGen('foo', {config: config['generator-angular-fullstack']}).then(_dir => {
178+
return runEndpointGen('Foo', {config: config['generator-angular-fullstack']}).then(_dir => {
179179
dir = _dir;
180+
181+
return Promise.all([
182+
copyAsync(path.join(genDir, '/server/.jshintrc'), './server/.jshintrc'),
183+
copyAsync(path.join(genDir, '/server/.jshintrc-spec'), './server/.jshintrc-spec')
184+
]);
180185
});
181186
});
182187

188+
it('should generate the expected files');
189+
183190
it('should pass jscs');
184191

185-
it('should pass lint');
192+
it('should pass lint', function() {
193+
return jshintDir(dir, 'Foo').should.be.fulfilled();
194+
});
186195
});
187196

188197
describe('with a generated path name endpont', function() {
189198
var dir;
190199
beforeEach(function() {
191-
return runEndpointGen('foo', {config: config['generator-angular-fullstack']}).then(_dir => {
200+
return runEndpointGen('foo/bar', {config: config['generator-angular-fullstack']}).then(_dir => {
192201
dir = _dir;
202+
203+
return Promise.all([
204+
copyAsync(path.join(genDir, '/server/.jshintrc'), './server/.jshintrc'),
205+
copyAsync(path.join(genDir, '/server/.jshintrc-spec'), './server/.jshintrc-spec')
206+
]);
193207
});
194208
});
195209

210+
it('should generate the expected files');
211+
196212
it('should pass jscs');
197213

198-
it('should pass lint');
214+
it('should pass lint', function() {
215+
return jshintDir(dir, 'foo', 'foo/bar').should.be.fulfilled();
216+
});
199217
});
200218
});

0 commit comments

Comments
 (0)