Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
fix: minor improvement to path handling in Node.js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored and vmx committed Jan 17, 2020
1 parent 7cacff7 commit ea53bb3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/node.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/* eslint-env mocha */
'use strict'

const path = require('path')
const fs = require('fs-extra')
const IPFSRepo = require('ipfs-repo')
const os = require('os')

describe('Node.js', () => {
const repoExample = process.cwd() + '/test/example-repo'
const repoTests = os.tmpdir() + '/t-r-' + Date.now()
const repoExample = path.join(process.cwd(), 'test/example-repo')
const repoTests = fs.mkdtempSync(path.join(os.tmpdir(), 'js-ipld-'))
const repo = new IPFSRepo(repoTests)

before(async () => {
Expand Down

0 comments on commit ea53bb3

Please sign in to comment.