From c252c499df81caf744b1d0f420436420f5ae5476 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 27 Nov 2018 12:53:50 -0500 Subject: [PATCH] add missing send method --- remix-simulator/src/provider.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/remix-simulator/src/provider.js b/remix-simulator/src/provider.js index 65d3043e24..939b75afa2 100644 --- a/remix-simulator/src/provider.js +++ b/remix-simulator/src/provider.js @@ -36,6 +36,10 @@ Provider.prototype.sendAsync = function (payload, callback) { callback(new Error('unknown method ' + payload.method)) } +Provider.prototype.send = function(payload, callback) { + this.sendAsync(payload, callback || () => {}) +} + Provider.prototype.isConnected = function () { return true }