diff --git a/test/cli/config.js b/test/cli/config.js index 8de6595978..9f13d81b25 100644 --- a/test/cli/config.js +++ b/test/cli/config.js @@ -19,7 +19,7 @@ describe('config', () => runOnAndOff((thing) => { before(() => { ipfs = thing.ipfs configPath = path.join(ipfs.repoPath, 'config') - originalConfigPath = path.join(__dirname, '../test-data/go-ipfs-repo/config') + originalConfigPath = path.join(__dirname, '../go-ipfs-repo/config') updatedConfig = () => JSON.parse(fs.readFileSync(configPath, 'utf8')) restoreConfig = () => fs.writeFileSync(configPath, fs.readFileSync(originalConfigPath, 'utf8'), 'utf8') }) diff --git a/test/http-api/over-ipfs-api/object.js b/test/http-api/over-ipfs-api/object.js index 5664c57c8f..105b25bdd3 100644 --- a/test/http-api/over-ipfs-api/object.js +++ b/test/http-api/over-ipfs-api/object.js @@ -191,7 +191,7 @@ module.exports = (ctl) => { const key = 'QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n' const filePath = 'test/test-data/badnode.json' const expectedResult = { - data: fs.readFileSync(filePath).toString(), + data: fs.readFileSync(filePath), multihash: 'QmfY37rjbPCZRnhvvJuQ46htW3VCAWziVB991P79h6WSv6', links: [], size: 19 @@ -226,7 +226,7 @@ module.exports = (ctl) => { const key = 'QmfY37rjbPCZRnhvvJuQ46htW3VCAWziVB991P79h6WSv6' const filePath = 'test/test-data/badnode.json' const expectedResult = { - data: fs.readFileSync(filePath).toString(), + data: fs.readFileSync(filePath), multihash: 'QmfY37rjbPCZRnhvvJuQ46htW3VCAWziVB991P79h6WSv6', links: [], size: 19