Skip to content

Commit c18824a

Browse files
committed
test(endpoint): test against a path name endpoint
1 parent 06eeab4 commit c18824a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

test/test-file-creation.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,29 @@ describe('angular-fullstack generator', function () {
417417
runTest('grunt test:server', this, done, 'Foo');
418418
});
419419

420+
it('should pass lint with generated path name endpoint', function(done) {
421+
runTest('grunt jshint', this, done, 'foo/bar');
422+
});
423+
424+
it('should run server tests successfully with generated path name endpoint', function(done) {
425+
runTest('grunt test:server', this, done, 'foo/bar');
426+
});
427+
428+
it('should generate expected files with path name endpoint', function(done) {
429+
runTest('(exit 0)', this, function() {
430+
helpers.assertFile([
431+
'server/api/foo/bar/index.js',
432+
'server/api/foo/bar/index.spec.js',
433+
'server/api/foo/bar/bar.controller.js',
434+
'server/api/foo/bar/bar.events.js',
435+
'server/api/foo/bar/bar.integration.js',
436+
'server/api/foo/bar/bar.model.js',
437+
'server/api/foo/bar/bar.socket.js'
438+
]);
439+
done();
440+
}, 'foo/bar');
441+
});
442+
420443
it('should use existing config if available', function(done) {
421444
this.timeout(60000);
422445
fs.copySync(__dirname + '/fixtures/.yo-rc.json', __dirname + '/temp/.yo-rc.json');

0 commit comments

Comments
 (0)