You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
629 B
23 lines
629 B
10 years ago
|
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('/lib/web3/qtsyncprovider', function () {
|
||
|
describe('send', function () {
|
||
|
it('should send basic request', function () {
|
||
|
var provider = new QtSyncProvider();
|
||
|
var result = provider.send({});
|
||
|
|
||
|
assert.equal(typeof result, 'object');
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
|