Skip to content

Commit

Permalink
test: Remove redundent copy/paste
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Jan 3, 2021
1 parent a2128b1 commit 3c81294
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/async-await.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,6 @@ tap.test('async-error', function (t) {
tap.test('async-bug', function (t) {
runProgram('async-await', 'async-bug.js', function (r) {
var stdout = r.stdout.toString('utf8');
var lines = stdout.split('\n');
lines = lines.filter(function (line) {
return !/^(\s+)at(\s+)<anonymous>$/.test(line);
});
stdout = lines.join('\n');

t.same(stripFullStack(stdout.toString('utf8')), [
'TAP version 13',
Expand All @@ -280,13 +275,6 @@ tap.test('async-bug', function (t) {
t.same(r.exitCode, 1);

var stderr = r.stderr.toString('utf8');
var lines = stderr.split('\n');
lines = lines.filter(function (line) {
return !/\(timers.js:/.test(line)
&& !/\(internal\/timers.js:/.test(line)
&& !/Immediate\.next/.test(line);
});
stderr = lines.join('\n');

t.same(stderr, '');
t.end();
Expand Down

0 comments on commit 3c81294

Please sign in to comment.