web3.js/test/qtsyncprovider.js

23 lines
615 B
JavaScript
Raw Normal View History

2015-03-21 21:17:24 +00:00
var chai = require('chai');
var assert = chai.assert;
var SandboxedModule = require('sandboxed-module');
SandboxedModule.registerBuiltInSourceTransformer('istanbul');
2015-03-21 21:17:24 +00:00
var QtSyncProvider = SandboxedModule.require('../lib/web3/qtsync', {
globals: {
navigator: require('./helpers/FakeQtNavigator')
2015-03-21 21:17:24 +00:00
}
});
describe('qtprovider', function () {
describe('send', function () {
it('should send basic request', function () {
var provider = new QtSyncProvider();
var result = provider.send({});
assert.equal(typeof result, 'object');
});
});
});