2015-03-21 21:17:24 +00:00
|
|
|
var chai = require('chai');
|
|
|
|
var assert = chai.assert;
|
|
|
|
var SandboxedModule = require('sandboxed-module');
|
|
|
|
|
2015-03-23 14:26:32 +00:00
|
|
|
SandboxedModule.registerBuiltInSourceTransformer('istanbul');
|
2015-03-21 21:17:24 +00:00
|
|
|
var QtSyncProvider = SandboxedModule.require('../lib/web3/qtsync', {
|
|
|
|
globals: {
|
2015-03-23 14:57:36 +00:00
|
|
|
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');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|