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

Commit 037bf97

Browse files
committed
fix(files.get): Move path.join call out of readStream to not mess with the AST parser
1 parent 6b1b119 commit 037bf97

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/api/get.spec.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ const testfile = fs.readFileSync(path.join(__dirname, '/../testfile.txt'))
2020
let testfileBig
2121

2222
if (isNode) {
23-
testfileBig = fs.createReadStream(path.join(__dirname, '/../15mb.random'), { bufferSize: 128 })
23+
const tfbPath = path.join(__dirname, '/../15mb.random')
24+
testfileBig = fs.createReadStream(tfbPath, { bufferSize: 128 })
2425
}
2526

26-
describe.skip('.get', () => {
27+
describe('.get', () => {
2728
it('get with no compression args', (done) => {
2829
apiClients.a
2930
.get('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', (err, res) => {
@@ -104,7 +105,7 @@ describe.skip('.get', () => {
104105
})
105106
})
106107

107-
describe.skip('promise', () => {
108+
describe('promise', () => {
108109
it('get', (done) => {
109110
apiClients.a.get('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP')
110111
.then((res) => {

0 commit comments

Comments
 (0)