Skip to content

Commit df20c8e

Browse files
committed
test(gen:main): various fixes/etc
1 parent a1f2c6d commit df20c8e

File tree

1 file changed

+5
-39
lines changed

1 file changed

+5
-39
lines changed

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

+5-39
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('angular-fullstack:app', function() {
109109
it('generates the proper files', function() {
110110
const expectedFiles = getExpectedFiles.app(defaultOptions);
111111
assert.file(expectedFiles);
112-
return assertOnlyFiles(expectedFiles, path.normalize(dir)).should.eventually.be.fulfilled;
112+
return assertOnlyFiles(expectedFiles, path.normalize(dir)).should.be.fulfilled();
113113
});
114114

115115
it('passes JSCS', function() {
@@ -128,7 +128,7 @@ describe('angular-fullstack:app', function() {
128128
return runCmd('grunt test:server').should.be.fulfilled();
129129
});
130130

131-
describe('with a generated endpont', function() {
131+
describe('with a generated endpoint', function() {
132132
beforeEach(function() {
133133
getConfig(path.join(dir, '.yo-rc.json')).then(config => {
134134
return runEndpointGen('foo', {config: config['generator-angular-fullstack']});
@@ -140,7 +140,7 @@ describe('angular-fullstack:app', function() {
140140
});
141141
});
142142

143-
describe('with a generated capitalized endpont', function() {
143+
describe('with a generated capitalized endpoint', function() {
144144
beforeEach(function() {
145145
getConfig(path.join(dir, '.yo-rc.json')).then(config => {
146146
return runEndpointGen('Foo', {config: config['generator-angular-fullstack']});
@@ -152,7 +152,7 @@ describe('angular-fullstack:app', function() {
152152
});
153153
});
154154

155-
describe('with a generated path name endpont', function() {
155+
describe('with a generated path name endpoint', function() {
156156
beforeEach(function() {
157157
getConfig(path.join(dir, '.yo-rc.json')).then(config => {
158158
return runEndpointGen('foo/bar', {config: config['generator-angular-fullstack']});
@@ -164,41 +164,7 @@ describe('angular-fullstack:app', function() {
164164
});
165165
});
166166

167-
it('should generate expected files with path name endpoint');
168-
// [
169-
// 'server/api/foo/bar/index.js',
170-
// 'server/api/foo/bar/index.spec.js',
171-
// 'server/api/foo/bar/bar.controller.js',
172-
// 'server/api/foo/bar/bar.events.js',
173-
// 'server/api/foo/bar/bar.integration.js',
174-
// 'server/api/foo/bar/bar.model.js',
175-
// 'server/api/foo/bar/bar.socket.js'
176-
// ]
177-
178-
it('should use existing config if available');
179-
// this.timeout(60000);
180-
// return copyAsync(__dirname + '/fixtures/.yo-rc.json', __dirname + '/temp/.yo-rc.json').then(() => {
181-
// var gen = helpers.createGenerator('angular-fullstack:app', [
182-
// '../../generators/app',
183-
// '../../generators/endpoint',
184-
// [
185-
// helpers.createDummyGenerator(),
186-
// 'ng-component:app'
187-
// ]
188-
// ], [], {
189-
// skipInstall: true
190-
// });
191-
// helpers.mockPrompt(gen, {
192-
// skipConfig: true
193-
// });
194-
// gen.run(function () {
195-
// assert.file([
196-
// 'client/app/main/main.less',
197-
// 'server/auth/google/passport.js'
198-
// ]);
199-
// done();
200-
// });
201-
// });
167+
it('should run server tests successfully with generated snake-case endpoint'); //'foo-bar'
202168

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

0 commit comments

Comments
 (0)