Skip to content

Commit

Permalink
don't use arrow functions in tests
Browse files Browse the repository at this point in the history
breaks node 0.10, obviously
  • Loading branch information
isaacs committed Feb 23, 2017
1 parent 72a3a9a commit df9f371
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/test/unfinished-empty--bail--buffer.tap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ not ok 1 - a ___/# time=[0-9.]+(ms)?/~~~ {
not ok 1 - b ___/# time=[0-9.]+(ms)?/~~~ {
not ok 1 - test unfinished
---
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"}
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', function (t) {\n","test":"b"}
...

Bail out! # test unfinished
Expand Down
2 changes: 1 addition & 1 deletion test/test/unfinished-empty--bail.tap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TAP version 13
# Subtest: b
not ok 1 - test unfinished
---
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"}
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', function (t) {\n","test":"b"}
...

Bail out! # test unfinished
Expand Down
2 changes: 1 addition & 1 deletion test/test/unfinished-empty--buffer.tap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ not ok 1 - a ___/# time=[0-9.]+(ms)?/~~~ {
not ok 1 - b ___/# time=[0-9.]+(ms)?/~~~ {
not ok 1 - test unfinished
---
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"}
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', function (t) {\n","test":"b"}
...

1..1
Expand Down
8 changes: 4 additions & 4 deletions test/test/unfinished-empty.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
var t = require('tap')

t.teardown(() => console.log('ok'))
t.teardown(function () { console.log('ok') })

t.test('a', t => {
t.test('b', t => {
// t.pass('ok')
t.test('a', function (t) {
t.test('b', function (t) {
// nothing here
})
})
2 changes: 1 addition & 1 deletion test/test/unfinished-empty.tap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TAP version 13
# Subtest: b
not ok 1 - test unfinished
---
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', t => {\n","test":"b"}
{"at":{"column":5,"file":"test/test/unfinished-empty.js","line":6},"source":"t.test('b', function (t) {\n","test":"b"}
...

1..1
Expand Down

0 comments on commit df9f371

Please sign in to comment.