Skip to content

Commit 43ce8ee

Browse files
committed
test(gen:main): add e2e tests
1 parent 9d5e945 commit 43ce8ee

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

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

+15-3
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,13 @@ describe('angular-fullstack:app', function() {
177177
});
178178

179179
if(!process.env.SKIP_E2E) {
180-
it('should run e2e tests successfully'); //'grunt test:e2e'
180+
it('should run e2e tests successfully', function() {
181+
return runCmd('grunt test:e2e').should.be.fulfilled();
182+
});
181183

182-
it('should run e2e tests successfully for production app'); //'grunt test:e2e:prod'
184+
it('should run e2e tests successfully for production app', function() {
185+
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
186+
});
183187
}
184188
});
185189

@@ -279,7 +283,15 @@ describe('angular-fullstack:app', function() {
279283
});
280284

281285
if(!process.env.SKIP_E2E) {
282-
it('should run e2e tests successfully');
286+
it('should run e2e tests successfully', function() {
287+
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
288+
});
289+
290+
it('should run e2e tests successfully for production app', function() {
291+
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
292+
});
293+
}
294+
});
283295

284296
//it('should run e2e tests successfully for production app', function (done) {
285297
// runTest('grunt test:e2e:prod', this, done, 240000);

0 commit comments

Comments
 (0)