mirror of https://github.com/status-im/web3.js.git
23 lines
615 B
JavaScript
23 lines
615 B
JavaScript
var chai = require('chai');
|
|
var assert = chai.assert;
|
|
var SandboxedModule = require('sandboxed-module');
|
|
|
|
SandboxedModule.registerBuiltInSourceTransformer('istanbul');
|
|
var QtSyncProvider = SandboxedModule.require('../lib/web3/qtsync', {
|
|
globals: {
|
|
navigator: require('./helpers/FakeQtNavigator')
|
|
}
|
|
});
|
|
|
|
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');
|
|
});
|
|
});
|
|
});
|
|
|