Skip to content

Commit 0775e64

Browse files
committed
fix false positives on client tests
1 parent 69059c0 commit 0775e64

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

test/fixtures/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"karma-requirejs": "~0.2.1",
7777
"karma-coffee-preprocessor": "~0.2.1",
7878
"karma-jade-preprocessor": "0.0.11",
79+
"karma-ng-jade2js-preprocessor": "^0.1.2",
7980
"karma-phantomjs-launcher": "~0.1.4",
8081
"karma": "~0.12.9",
8182
"karma-ng-html2js-preprocessor": "~0.1.0",

test/test-file-creation.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ describe('angular-fullstack generator', function () {
9595
this.timeout(60000);
9696
gen.run({}, function () {
9797
exec('grunt test:client', function (error, stdout, stderr) {
98-
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Done, without errors.');
98+
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Executed 1 of 1\u001b[32m SUCCESS\u001b');
9999
done();
100100
});
101101
});
@@ -175,7 +175,7 @@ describe('angular-fullstack generator', function () {
175175
this.timeout(60000);
176176
gen.run({}, function () {
177177
exec('grunt test:client', function (error, stdout, stderr) {
178-
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Done, without errors.');
178+
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Executed 1 of 1\u001b[32m SUCCESS\u001b');
179179
done();
180180
});
181181
});
@@ -210,7 +210,7 @@ describe('angular-fullstack generator', function () {
210210
this.timeout(60000);
211211
gen.run({}, function () {
212212
exec('grunt test:client', function (error, stdout, stderr) {
213-
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Done, without errors.');
213+
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Executed 1 of 1\u001b[32m SUCCESS\u001b');
214214
done();
215215
});
216216
});
@@ -245,7 +245,7 @@ describe('angular-fullstack generator', function () {
245245
this.timeout(60000);
246246
gen.run({}, function () {
247247
exec('grunt test:client', function (error, stdout, stderr) {
248-
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Done, without errors.');
248+
expect(stdout, 'Client tests failed \n' + stdout ).to.contain('Executed 1 of 1\u001b[32m SUCCESS\u001b');
249249
done();
250250
});
251251
});

0 commit comments

Comments
 (0)