Skip to content

Commit 9d5e945

Browse files
committed
test(gen:main): add snake-case endpoint test
1 parent d21082d commit 9d5e945

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: src/test/main.test.js

+11-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,17 @@ describe('angular-fullstack:app', function() {
164164
});
165165
});
166166

167-
it('should run server tests successfully with generated snake-case endpoint'); //'foo-bar'
167+
describe('with a generated snake-case endpoint', function() {
168+
beforeEach(function() {
169+
getConfig(path.join(dir, '.yo-rc.json')).then(config => {
170+
return runEndpointGen('foo-bar', {config: config['generator-angular-fullstack']});
171+
});
172+
});
173+
174+
it('should run server tests successfully', function() {
175+
return runCmd('grunt test:server').should.be.fulfilled();
176+
});
177+
});
168178

169179
if(!process.env.SKIP_E2E) {
170180
it('should run e2e tests successfully'); //'grunt test:e2e'

0 commit comments

Comments
 (0)