Skip to content

Commit 1776058

Browse files
committed
test that jshint passes on project
1 parent fefdb6f commit 1776058

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

Diff for: test/test-file-creation.js

+22
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,17 @@ describe('angular-fullstack generator', function () {
181181
});
182182
});
183183

184+
it('should pass jshint', function(done) {
185+
this.timeout(60000);
186+
gen.run({}, function () {
187+
exec('grunt jshint', function (error, stdout, stderr) {
188+
expect(stdout).to.contain('Running "jshint:server" (jshint) task\u001b[24m\n\n✔ No problems');
189+
expect(stdout).to.contain('Running "jshint:all" (jshint) task\u001b[24m\n\n✔ No problems');
190+
done();
191+
});
192+
});
193+
});
194+
184195
it('should run server tests successfully', function(done) {
185196
this.timeout(60000);
186197
gen.run({}, function () {
@@ -251,6 +262,17 @@ describe('angular-fullstack generator', function () {
251262
});
252263
});
253264

265+
it('should pass jshint', function(done) {
266+
this.timeout(60000);
267+
gen.run({}, function () {
268+
exec('grunt jshint', function (error, stdout, stderr) {
269+
expect(stdout).to.contain('Running "jshint:server" (jshint) task\u001b[24m\n\n✔ No problems');
270+
expect(stdout).to.contain('Running "jshint:all" (jshint) task\u001b[24m\n\n✔ No problems');
271+
done();
272+
});
273+
});
274+
});
275+
254276
it('should run server tests successfully', function(done) {
255277
this.timeout(60000);
256278
gen.run({}, function () {

0 commit comments

Comments
 (0)