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

Commit 3566712

Browse files
committed
fix: tests using files
1 parent 4085089 commit 3566712

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ describe('files', function () {
196196

197197
describe('has the same hashes for', () => {
198198
const testHashesAreEqual = (daemon, data, options) => {
199-
return daemon.api.files.add(data, options)
199+
return daemon.api.add(data, options)
200200
.then(files => files[0].hash)
201201
}
202202

test/utils/circuit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ exports.createGoNode = (addrs, callback) => {
9898
const data = crypto.randomBytes(128)
9999
exports.send = (nodeA, nodeB, callback) => {
100100
waterfall([
101-
(cb) => nodeA.files.add(data, cb),
102-
(res, cb) => nodeB.files.cat(res[0].hash, cb),
101+
(cb) => nodeA.add(data, cb),
102+
(res, cb) => nodeB.cat(res[0].hash, cb),
103103
(buffer, cb) => {
104104
expect(buffer).to.deep.equal(data)
105105
cb()

0 commit comments

Comments
 (0)