From 3566712906b4ed321dcc0a7c7bcd601879c65ca1 Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Fri, 30 Nov 2018 18:55:55 +0000 Subject: [PATCH] fix: tests using files --- test/files.js | 2 +- test/utils/circuit.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/files.js b/test/files.js index efee4c6b..146f0c8e 100644 --- a/test/files.js +++ b/test/files.js @@ -196,7 +196,7 @@ describe('files', function () { describe('has the same hashes for', () => { const testHashesAreEqual = (daemon, data, options) => { - return daemon.api.files.add(data, options) + return daemon.api.add(data, options) .then(files => files[0].hash) } diff --git a/test/utils/circuit.js b/test/utils/circuit.js index 36e1352c..6ec50832 100644 --- a/test/utils/circuit.js +++ b/test/utils/circuit.js @@ -98,8 +98,8 @@ exports.createGoNode = (addrs, callback) => { const data = crypto.randomBytes(128) exports.send = (nodeA, nodeB, callback) => { waterfall([ - (cb) => nodeA.files.add(data, cb), - (res, cb) => nodeB.files.cat(res[0].hash, cb), + (cb) => nodeA.add(data, cb), + (res, cb) => nodeB.cat(res[0].hash, cb), (buffer, cb) => { expect(buffer).to.deep.equal(data) cb()