|
|
@ -1,8 +1,8 @@ |
|
|
|
import { default as test} from "tape" |
|
|
|
import * as test from "tape" |
|
|
|
import { helpers } from 'remix-lib' |
|
|
|
import { helpers } from '@remix-project/remix-lib' |
|
|
|
import { readFileSync } from 'fs' |
|
|
|
import { readFileSync } from 'fs' |
|
|
|
import { join } from 'path' |
|
|
|
import { join } from 'path' |
|
|
|
import { default as StatRunner } from '../../dist/src/solidity-analyzer' |
|
|
|
import { default as StatRunner } from '../../src/solidity-analyzer' |
|
|
|
import * as modules from '../../src/solidity-analyzer/modules/' |
|
|
|
import * as modules from '../../src/solidity-analyzer/modules/' |
|
|
|
import { CompilationResult, AnalysisReportObj, AnalysisReport } from '../../src/types' |
|
|
|
import { CompilationResult, AnalysisReportObj, AnalysisReport } from '../../src/types' |
|
|
|
import { install, require as requireNPMmodule } from 'npm-install-version' |
|
|
|
import { install, require as requireNPMmodule } from 'npm-install-version' |
|
|
@ -301,7 +301,7 @@ test('Integration test similarVariableNames module', function (t: test.Test) { |
|
|
|
|
|
|
|
|
|
|
|
test('Integration test blockTimestamp module', function (t: test.Test) { |
|
|
|
test('Integration test blockTimestamp module', function (t: test.Test) { |
|
|
|
t.plan(testFiles.length) |
|
|
|
t.plan(testFiles.length) |
|
|
|
const module: any = require('../../dist/src/solidity-analyzer/modules/blockTimestamp').default |
|
|
|
const module: any = modules.blockTimestamp
|
|
|
|
const lengthCheck: Record<string, number> = { |
|
|
|
const lengthCheck: Record<string, number> = { |
|
|
|
'KingOfTheEtherThrone.sol': 1, |
|
|
|
'KingOfTheEtherThrone.sol': 1, |
|
|
|
'assembly.sol': 0, |
|
|
|
'assembly.sol': 0, |
|
|
|