diff --git a/remix-simulator/src/provider.js b/remix-simulator/src/provider.js index 65d3043e24..1f4e5d9b80 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 || function () {}) +} + Provider.prototype.isConnected = function () { return true }