diff --git a/remix-tests/src/deployer.ts b/remix-tests/src/deployer.ts index 3a1eb0318a..d0dfcf9d67 100644 --- a/remix-tests/src/deployer.ts +++ b/remix-tests/src/deployer.ts @@ -1,6 +1,6 @@ import async from 'async' var remixLib = require('remix-lib') -import Web3 from 'web3' +import Web3 = require('web3') export function deployAll(compileResult: object, web3: Web3, callback) { let compiledObject = {} diff --git a/remix-tests/src/run.ts b/remix-tests/src/run.ts index 1364ad6855..9ff70d4e15 100644 --- a/remix-tests/src/run.ts +++ b/remix-tests/src/run.ts @@ -1,5 +1,5 @@ import commander from 'commander' -import Web3 from 'web3' +import Web3 = require('web3') import { runTestFiles } from './runTestFiles' import fs from './fileSystem' import { Provider } from 'remix-simulator' diff --git a/remix-tests/src/runTestFiles.ts b/remix-tests/src/runTestFiles.ts index 7fbace3b9b..cffcee9028 100644 --- a/remix-tests/src/runTestFiles.ts +++ b/remix-tests/src/runTestFiles.ts @@ -3,7 +3,7 @@ import fs from './fileSystem' import { runTest } from './testRunner' import { TestResultInterface, ResultsInterface } from './types' import colors from 'colors' -import Web3 from 'web3' +import Web3 = require('web3') import { compileFileOrFiles } from './compiler' import { deployAll } from './deployer' diff --git a/remix-tests/src/testRunner.ts b/remix-tests/src/testRunner.ts index 2b1791d1ce..eb49fe93f7 100644 --- a/remix-tests/src/testRunner.ts +++ b/remix-tests/src/testRunner.ts @@ -1,6 +1,6 @@ import async from 'async' import * as changeCase from 'change-case' -import Web3 from 'web3' +import Web3 = require('web3') import { RunListInterface, TestCbInterface, TestResultInterface, ResultCbInterface } from './types' function getFunctionFullName (signature: string, methodIdentifiers) { diff --git a/remix-tests/tests/testRunner.ts b/remix-tests/tests/testRunner.ts index db93804514..0a70eef5d8 100644 --- a/remix-tests/tests/testRunner.ts +++ b/remix-tests/tests/testRunner.ts @@ -1,6 +1,6 @@ import 'mocha' import * as async from 'async' -import Web3 from 'web3' +import Web3 = require('web3') import * as assert from 'assert' import { Provider } from 'remix-simulator'