Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

chore: Use normal functions so this.skip has the correct context #258

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions js/src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ module.exports = (common) => {
})
})

it('exports a chunk of a file', (done) => {
it('exports a chunk of a file', function (done) {
if (withGo) { this.skip() }

const offset = 1
Expand Down Expand Up @@ -589,7 +589,7 @@ module.exports = (common) => {
}))
})

it('exports a chunk of a file in a ReadableStream', (done) => {
it('exports a chunk of a file in a ReadableStream', function (done) {
if (withGo) { this.skip() }

const offset = 1
Expand Down Expand Up @@ -625,7 +625,7 @@ module.exports = (common) => {
)
})

it('exports a chunk of a file in a PullStream', (done) => {
it('exports a chunk of a file in a PullStream', function (done) {
if (withGo) { this.skip() }

const offset = 1
Expand Down