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

Commit 4d87730

Browse files
committed
clean lint
1 parent ff1ec92 commit 4d87730

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

test/util.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ describe('.util', () => {
9898
it('with only-hash=true', function () {
9999
this.slow(10 * 1000)
100100
const content = String(Math.random() + Date.now())
101-
const filepath = path.join(require('os').tmpdir(), `${content}.txt`)
101+
const filepath = path.join(os.tmpdir(), `${content}.txt`)
102102
fs.writeFileSync(filepath, content)
103103

104104
return ipfs.util.addFromFs(filepath, { 'only-hash': true })

test/utils/expect-timeout.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
'use strict'
2+
13
/**
2-
* Expect a Promise to timeout
3-
* @param {Promise} promise promise that you expect to timeout
4+
* Resolve if @param promise hangs for at least @param ms, throw otherwise
5+
* @param {Promise} promise promise that you expect to hang
46
* @param {Number} ms millis to wait
57
* @return {Promise}
68
*/

0 commit comments

Comments
 (0)