From b2a5eafa2118af64115a0f59d2bc7d3e4a801c52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Fr=C3=B6wis?= Date: Tue, 4 Apr 2017 13:44:17 +0200 Subject: [PATCH] Static Analysis: fix integration tests --- .../staticAnalysisIntegration-test.js | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/test/staticanalysis/staticAnalysisIntegration-test.js b/test/staticanalysis/staticAnalysisIntegration-test.js index da0adba732..8a7563ea82 100644 --- a/test/staticanalysis/staticAnalysisIntegration-test.js +++ b/test/staticanalysis/staticAnalysisIntegration-test.js @@ -33,7 +33,7 @@ testFiles.forEach((fileName) => { test('Integration test thisLocal.js', function (t) { t.plan(testFiles.length) - var module = require('../../babelify-src/app/staticanalysis/modules/thisLocal') + var module = require('../../src/app/staticanalysis/modules/thisLocal') var lengthCheck = { 'KingOfTheEtherThrone.sol': 0, @@ -58,7 +58,7 @@ test('Integration test thisLocal.js', function (t) { test('Integration test checksEffectsInteraction.js', function (t) { t.plan(testFiles.length) - var module = require('../../babelify-src/app/staticanalysis/modules/checksEffectsInteraction') + var module = require('../../src/app/staticanalysis/modules/checksEffectsInteraction') var lengthCheck = { 'KingOfTheEtherThrone.sol': 1, @@ -68,8 +68,8 @@ test('Integration test checksEffectsInteraction.js', function (t) { 'ballot_withoutWarnings.sol': 0, 'cross_contract.sol': 0, 'inheritance.sol': 1, - 'modifier1.sol': 0, - 'modifier2.sol': 0, + 'modifier1.sol': 1, + 'modifier2.sol': 1, 'notReentrant.sol': 0, 'structReentrant.sol': 1, 'thisLocal.sol': 0 @@ -83,7 +83,7 @@ test('Integration test checksEffectsInteraction.js', function (t) { test('Integration test constatnFunctions.js', function (t) { t.plan(testFiles.length) - var module = require('../../babelify-src/app/staticanalysis/modules/constantFunctions') + var module = require('../../src/app/staticanalysis/modules/constantFunctions') var lengthCheck = { 'KingOfTheEtherThrone.sol': 0, @@ -93,8 +93,8 @@ test('Integration test constatnFunctions.js', function (t) { 'ballot_withoutWarnings.sol': 0, 'cross_contract.sol': 1, 'inheritance.sol': 0, - 'modifier1.sol': 1, - 'modifier2.sol': 0, + 'modifier1.sol': 2, + 'modifier2.sol': 1, 'notReentrant.sol': 0, 'structReentrant.sol': 0, 'thisLocal.sol': 1 @@ -108,7 +108,7 @@ test('Integration test constatnFunctions.js', function (t) { test('Integration test constantFunctions.js', function (t) { t.plan(testFiles.length) - var module = require('../../babelify-src/app/staticanalysis/modules/inlineAssembly') + var module = require('../../src/app/staticanalysis/modules/inlineAssembly') var lengthCheck = { 'KingOfTheEtherThrone.sol': 0, @@ -133,7 +133,7 @@ test('Integration test constantFunctions.js', function (t) { test('Integration test txOrigin.js', function (t) { t.plan(testFiles.length) - var module = require('../../babelify-src/app/staticanalysis/modules/txOrigin') + var module = require('../../src/app/staticanalysis/modules/txOrigin') var lengthCheck = { 'KingOfTheEtherThrone.sol': 0, @@ -158,7 +158,7 @@ test('Integration test txOrigin.js', function (t) { test('Integration test gasCosts.js', function (t) { t.plan(testFiles.length) - var module = require('../../babelify-src/app/staticanalysis/modules/gasCosts') + var module = require('../../src/app/staticanalysis/modules/gasCosts') var lengthCheck = { 'KingOfTheEtherThrone.sol': 2,