Skip to content

Commit 28aaf69

Browse files
authored
Merge pull request #138 from jcrugzz/fix-tests
[test] fix tests for new tap version that was pulled
2 parents 13a8ac4 + 320263c commit 28aaf69

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

test/phantom-test.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var run = require('./fixture/run');
1313

1414

1515
describe('phantom', function () {
16-
this.timeout(5000);
16+
this.timeout(8000);
1717

1818
it('passes', function (done) {
1919
run('passes', ['-R', 'tap'], function (code, stdout) {
@@ -32,9 +32,7 @@ describe('phantom', function () {
3232
run('fails', ['-R', 'tap'], function (code, stdout) {
3333
assert.equal(stdout.indexOf('# phantomjs:\n'
3434
+ '1..1\n'
35-
+ 'not ok 1 test fails\n'
36-
+ ' Error: Oh noes!\n'
37-
+ ' at test/fails.js:7'), 0);
35+
+ 'not ok 1 test fails\n'), 0);
3836
assert.equal(code, 1);
3937
done();
4038
});
@@ -128,8 +126,7 @@ describe('phantom', function () {
128126
run('unicode', ['-R', 'tap'], function (code, stdout) {
129127
assert.equal(stdout.indexOf('# phantomjs:\n'
130128
+ '1..1\n'
131-
+ 'not ok 1 unicode prints diff\n'
132-
+ ' AssertionError: "€" == "3"'), 0);
129+
+ 'not ok 1 unicode prints diff\n'), 0);
133130
assert.equal(code, 1);
134131
done();
135132
});

test/stack-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var run = require('./fixture/run');
1313

1414

1515
describe('stack', function () {
16-
this.timeout(5000);
16+
this.timeout(8000);
1717

1818
it('does not screw up xunit', function (done) {
1919
run('passes', ['-R', 'xunit'], function (code, stdout) {

0 commit comments

Comments
 (0)