Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit e7b6867

Browse files
committed
Fixing integration tests
1 parent e819342 commit e7b6867

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/browser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ async function createAndLoadRepo () {
2323
const store = new Datastore(dir, { extension: '', createIfMissing: true })
2424
await store.open()
2525

26-
await store.put(VERSION_KEY, Buffer.from(loadFixture('test/test-repo/version')))
27-
await store.put(CONFIG_KEY, Buffer.from(loadFixture('test/test-repo/config')))
26+
await store.put(VERSION_KEY, Buffer.from(loadFixture('test/fixtures/test-repo/version')))
27+
await store.put(CONFIG_KEY, Buffer.from(loadFixture('test/fixtures/test-repo/config')))
2828

2929
return dir
3030
}
File renamed without changes.
File renamed without changes.

test/node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const path = require('path')
88
const fs = require('fs')
99

1010
async function createRepo () {
11-
const testRepoPath = path.join(__dirname, 'test-repo')
11+
const testRepoPath = path.join(__dirname, 'fixtures', 'test-repo')
1212
const date = Date.now().toString()
1313
const dir = testRepoPath + '-for-' + date
1414
fs.mkdirSync(dir)
@@ -18,7 +18,7 @@ async function createRepo () {
1818

1919
async function createAndLoadRepo () {
2020
const dir = await createRepo()
21-
const testRepoPath = path.join(__dirname, 'test-repo')
21+
const testRepoPath = path.join(__dirname, 'fixtures', 'test-repo')
2222

2323
await asyncNcp(testRepoPath, dir)
2424
return dir

0 commit comments

Comments
 (0)