Skip to content

Commit 31951aa

Browse files
committed
test(gen): use npm scripts for lint/test
1 parent 1beea16 commit 31951aa

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

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

+22-22
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ describe('angular-fullstack:app', function() {
7272
});
7373

7474
it('passes lint', function() {
75-
return runCmd('gulp lint:scripts').should.be.fulfilled();
75+
return runCmd('npm run lint').should.be.fulfilled();
7676
});
7777

7878
it('passes client tests', function() {
79-
return runCmd('gulp test:client').should.be.fulfilled();
79+
return runCmd('npm run test:client').should.be.fulfilled();
8080
});
8181

8282
it('passes server tests', function() {
83-
return runCmd('gulp test:server').should.be.fulfilled();
83+
return runCmd('npm run test:server').should.be.fulfilled();
8484
});
8585

8686
describe('with a generated endpoint', function() {
@@ -91,7 +91,7 @@ describe('angular-fullstack:app', function() {
9191
});
9292

9393
it('should run server tests successfully', function() {
94-
return runCmd('gulp test:server').should.be.fulfilled();
94+
return runCmd('npm run test:server').should.be.fulfilled();
9595
});
9696
});
9797

@@ -103,7 +103,7 @@ describe('angular-fullstack:app', function() {
103103
});
104104

105105
it('should run server tests successfully', function() {
106-
return runCmd('gulp test:server').should.be.fulfilled();
106+
return runCmd('npm run test:server').should.be.fulfilled();
107107
});
108108
});
109109

@@ -115,7 +115,7 @@ describe('angular-fullstack:app', function() {
115115
});
116116

117117
it('should run server tests successfully', function() {
118-
return runCmd('gulp test:server').should.be.fulfilled();
118+
return runCmd('npm run test:server').should.be.fulfilled();
119119
});
120120
});
121121

@@ -127,7 +127,7 @@ describe('angular-fullstack:app', function() {
127127
});
128128

129129
it('should run server tests successfully', function() {
130-
return runCmd('gulp test:server').should.be.fulfilled();
130+
return runCmd('npm run test:server').should.be.fulfilled();
131131
});
132132
});
133133

@@ -159,9 +159,9 @@ describe('angular-fullstack:app', function() {
159159
}
160160
}).then(_dir => {
161161
dir = _dir;
162-
lintResult = runCmd('gulp lint:scripts');
163-
clientTestResult = runCmd('gulp test:client');
164-
serverTestResult = runCmd('gulp test:server');
162+
lintResult = runCmd('npm run lint');
163+
clientTestResult = runCmd('npm run test:client');
164+
serverTestResult = runCmd('npm run test:server');
165165
});
166166
});
167167

@@ -207,9 +207,9 @@ describe('angular-fullstack:app', function() {
207207
before(function() {
208208
return runGen(testOptions).then(_dir => {
209209
dir = _dir;
210-
lintResult = runCmd('gulp lint:scripts');
211-
clientTestResult = runCmd('gulp test:client');
212-
serverTestResult = runCmd('gulp test:server');
210+
lintResult = runCmd('npm run lint');
211+
clientTestResult = runCmd('npm run test:client');
212+
serverTestResult = runCmd('npm run test:server');
213213
});
214214
});
215215

@@ -239,7 +239,7 @@ describe('angular-fullstack:app', function() {
239239
});
240240

241241
it('should run server tests successfully', function() {
242-
return runCmd('gulp test:server').should.be.fulfilled();
242+
return runCmd('npm run test:server').should.be.fulfilled();
243243
});
244244
});
245245

@@ -281,8 +281,8 @@ describe('angular-fullstack:app', function() {
281281
beforeEach(function() {
282282
return runGen(testOptions).then(_dir => {
283283
dir = _dir;
284-
lintResult = runCmd('gulp lint:scripts');
285-
clientTestResult = runCmd('gulp test:client');
284+
lintResult = runCmd('npm run lint');
285+
clientTestResult = runCmd('npm run test:client');
286286
});
287287
});
288288

@@ -301,7 +301,7 @@ describe('angular-fullstack:app', function() {
301301
});
302302

303303
it.skip('should run server tests successfully', function() {
304-
return runCmd('gulp test:server').should.be.fulfilled();
304+
return runCmd('npm run test:server').should.be.fulfilled();
305305
});
306306

307307
describe.skip('with a generated endpoint', function() {
@@ -312,7 +312,7 @@ describe('angular-fullstack:app', function() {
312312
});
313313

314314
it('should run server tests successfully', function() {
315-
return runCmd('gulp test:server').should.be.fulfilled();
315+
return runCmd('npm run test:server').should.be.fulfilled();
316316
});
317317
});
318318

@@ -353,9 +353,9 @@ describe('angular-fullstack:app', function() {
353353
beforeEach(function() {
354354
return runGen(testOptions).then(_dir => {
355355
dir = _dir;
356-
lintResult = runCmd('gulp lint:scripts');
357-
clientTestResult = runCmd('gulp test:client');
358-
serverTestResult = runCmd('gulp test:server');
356+
lintResult = runCmd('npm run lint');
357+
clientTestResult = runCmd('npm run test:client');
358+
serverTestResult = runCmd('npm run test:server');
359359
});
360360
});
361361

@@ -385,7 +385,7 @@ describe('angular-fullstack:app', function() {
385385
});
386386

387387
it('should run server tests successfully', function() {
388-
return runCmd('gulp test:server').should.be.fulfilled();
388+
return runCmd('npm run test:server').should.be.fulfilled();
389389
});
390390
});
391391

0 commit comments

Comments
 (0)