From d31c5f0f30f7c66d10392d1e4c2e9a534a716d9c Mon Sep 17 00:00:00 2001 From: Jason Banks Date: Mon, 4 Feb 2019 17:58:05 +0100 Subject: [PATCH] Tests: specify 'use strict' in each JS file --- test/branded_token/accept_stake_request.js | 3 +++ test/branded_token/constructor.js | 3 +++ test/branded_token/convert_to_branded_tokens.js | 2 ++ test/branded_token/convert_to_value_tokens.js | 2 ++ test/branded_token/lift_all_restrictions.js | 3 +++ test/branded_token/lift_restriction.js | 3 +++ test/branded_token/redeem.js | 3 +++ test/branded_token/reject_stake_request.js | 3 +++ test/branded_token/request_stake.js | 3 +++ test/branded_token/revoke_stake_request.js | 3 +++ test/branded_token/set_name.js | 3 +++ test/branded_token/set_symbol.js | 3 +++ test/branded_token/transfer.js | 3 +++ test/branded_token/transferFrom.js | 3 +++ test/branded_token/utils.js | 3 +++ test/gateway_composer/accept_stake_request.js | 3 +++ test/gateway_composer/approve_token.js | 3 +++ test/gateway_composer/constructor.js | 3 +++ test/gateway_composer/destroy.js | 3 +++ test/gateway_composer/request_stake.js | 3 +++ test/gateway_composer/revert_stake.js | 3 +++ test/gateway_composer/revoke_stake_request.js | 3 +++ test/gateway_composer/transfer_token.js | 3 +++ test/gateway_composer/utils.js | 3 +++ test/internal/register_internal_actor.js | 3 +++ test/internal/utils.js | 3 +++ test/safe_math/add.js | 3 +++ test/safe_math/div.js | 3 +++ test/safe_math/mod.js | 3 +++ test/safe_math/mul.js | 3 +++ test/safe_math/sub.js | 3 +++ test/test_lib/event_decoder.js | 3 +++ test/test_lib/utils.js | 3 +++ test/test_lib/web3.js | 2 ++ test/utility_branded_token/approve.js | 3 +++ test/utility_branded_token/constructor.js | 3 +++ test/utility_branded_token/decrease_supply.js | 3 +++ test/utility_branded_token/increase_supply.js | 3 +++ test/utility_branded_token/set_cogateway.js | 3 +++ test/utility_branded_token/transfer.js | 3 +++ test/utility_branded_token/transfer_from.js | 3 +++ test/utility_branded_token/utils.js | 3 +++ 42 files changed, 123 insertions(+) diff --git a/test/branded_token/accept_stake_request.js b/test/branded_token/accept_stake_request.js index fb504e5..324a1f1 100644 --- a/test/branded_token/accept_stake_request.js +++ b/test/branded_token/accept_stake_request.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const EthUtils = require('ethereumjs-util'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/branded_token/constructor.js b/test/branded_token/constructor.js index 45fe0d9..f6ae3e0 100644 --- a/test/branded_token/constructor.js +++ b/test/branded_token/constructor.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/branded_token/convert_to_branded_tokens.js b/test/branded_token/convert_to_branded_tokens.js index caf4c17..40f0ea2 100644 --- a/test/branded_token/convert_to_branded_tokens.js +++ b/test/branded_token/convert_to_branded_tokens.js @@ -13,6 +13,8 @@ // limitations under the License. +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); const BrandedTokenUtils = require('./utils.js'); diff --git a/test/branded_token/convert_to_value_tokens.js b/test/branded_token/convert_to_value_tokens.js index 4d8671b..5f2b025 100644 --- a/test/branded_token/convert_to_value_tokens.js +++ b/test/branded_token/convert_to_value_tokens.js @@ -13,6 +13,8 @@ // limitations under the License. +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); const BrandedTokenUtils = require('./utils.js'); diff --git a/test/branded_token/lift_all_restrictions.js b/test/branded_token/lift_all_restrictions.js index 2c9925d..e73039a 100644 --- a/test/branded_token/lift_all_restrictions.js +++ b/test/branded_token/lift_all_restrictions.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const { AccountProvider } = require('../test_lib/utils.js'); const utils = require('../test_lib/utils'); diff --git a/test/branded_token/lift_restriction.js b/test/branded_token/lift_restriction.js index 9b8f9fa..9be0ccc 100644 --- a/test/branded_token/lift_restriction.js +++ b/test/branded_token/lift_restriction.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const { AccountProvider } = require('../test_lib/utils.js'); const utils = require('../test_lib/utils'); diff --git a/test/branded_token/redeem.js b/test/branded_token/redeem.js index aa99a27..fa4184d 100644 --- a/test/branded_token/redeem.js +++ b/test/branded_token/redeem.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/branded_token/reject_stake_request.js b/test/branded_token/reject_stake_request.js index 4bdfc58..0df87bc 100644 --- a/test/branded_token/reject_stake_request.js +++ b/test/branded_token/reject_stake_request.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/branded_token/request_stake.js b/test/branded_token/request_stake.js index b6b2754..7e1526f 100644 --- a/test/branded_token/request_stake.js +++ b/test/branded_token/request_stake.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/branded_token/revoke_stake_request.js b/test/branded_token/revoke_stake_request.js index 2002153..676520a 100644 --- a/test/branded_token/revoke_stake_request.js +++ b/test/branded_token/revoke_stake_request.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/branded_token/set_name.js b/test/branded_token/set_name.js index f1ec4f2..ad62e9e 100644 --- a/test/branded_token/set_name.js +++ b/test/branded_token/set_name.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const { AccountProvider } = require('../test_lib/utils.js'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/branded_token/set_symbol.js b/test/branded_token/set_symbol.js index 9dc48ac..1972d01 100644 --- a/test/branded_token/set_symbol.js +++ b/test/branded_token/set_symbol.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const { AccountProvider } = require('../test_lib/utils.js'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/branded_token/transfer.js b/test/branded_token/transfer.js index 2e2aeb8..7f80116 100644 --- a/test/branded_token/transfer.js +++ b/test/branded_token/transfer.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const { AccountProvider } = require('../test_lib/utils.js'); const utils = require('../test_lib/utils'); diff --git a/test/branded_token/transferFrom.js b/test/branded_token/transferFrom.js index a97db09..814e907 100644 --- a/test/branded_token/transferFrom.js +++ b/test/branded_token/transferFrom.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const { AccountProvider } = require('../test_lib/utils.js'); const utils = require('../test_lib/utils'); diff --git a/test/branded_token/utils.js b/test/branded_token/utils.js index f17b7ba..ab14e98 100644 --- a/test/branded_token/utils.js +++ b/test/branded_token/utils.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const web3 = require('../test_lib/web3.js'); const BrandedToken = artifacts.require('BrandedToken'); diff --git a/test/gateway_composer/accept_stake_request.js b/test/gateway_composer/accept_stake_request.js index df44250..03bafdc 100644 --- a/test/gateway_composer/accept_stake_request.js +++ b/test/gateway_composer/accept_stake_request.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/gateway_composer/approve_token.js b/test/gateway_composer/approve_token.js index de74b7b..88a70dd 100644 --- a/test/gateway_composer/approve_token.js +++ b/test/gateway_composer/approve_token.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/gateway_composer/constructor.js b/test/gateway_composer/constructor.js index d613893..fb0b4e3 100644 --- a/test/gateway_composer/constructor.js +++ b/test/gateway_composer/constructor.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const GatewayComposer = artifacts.require('GatewayComposer'); const utils = require('../test_lib/utils'); diff --git a/test/gateway_composer/destroy.js b/test/gateway_composer/destroy.js index 314f86a..bda9f31 100644 --- a/test/gateway_composer/destroy.js +++ b/test/gateway_composer/destroy.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); diff --git a/test/gateway_composer/request_stake.js b/test/gateway_composer/request_stake.js index 97fafd6..a054060 100644 --- a/test/gateway_composer/request_stake.js +++ b/test/gateway_composer/request_stake.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/gateway_composer/revert_stake.js b/test/gateway_composer/revert_stake.js index bb7d981..dbdaf8a 100644 --- a/test/gateway_composer/revert_stake.js +++ b/test/gateway_composer/revert_stake.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const { AccountProvider } = require('../test_lib/utils.js'); const web3 = require('../test_lib/web3.js'); diff --git a/test/gateway_composer/revoke_stake_request.js b/test/gateway_composer/revoke_stake_request.js index 700fb1e..4d8e40c 100644 --- a/test/gateway_composer/revoke_stake_request.js +++ b/test/gateway_composer/revoke_stake_request.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/gateway_composer/transfer_token.js b/test/gateway_composer/transfer_token.js index 88c6711..14da213 100644 --- a/test/gateway_composer/transfer_token.js +++ b/test/gateway_composer/transfer_token.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); const { AccountProvider } = require('../test_lib/utils.js'); diff --git a/test/gateway_composer/utils.js b/test/gateway_composer/utils.js index 5ed483b..e14ee07 100644 --- a/test/gateway_composer/utils.js +++ b/test/gateway_composer/utils.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const BrandedToken = artifacts.require('BrandedToken'); diff --git a/test/internal/register_internal_actor.js b/test/internal/register_internal_actor.js index b16d8d3..f5ead58 100644 --- a/test/internal/register_internal_actor.js +++ b/test/internal/register_internal_actor.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const { Event } = require('../test_lib/event_decoder'); const InternalUtils = require('./utils'); diff --git a/test/internal/utils.js b/test/internal/utils.js index 45bdca2..9b913f3 100644 --- a/test/internal/utils.js +++ b/test/internal/utils.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const Internal = artifacts.require('Internal'); const MockOrganization = artifacts.require('MockOrganization'); diff --git a/test/safe_math/add.js b/test/safe_math/add.js index db044ee..f371240 100644 --- a/test/safe_math/add.js +++ b/test/safe_math/add.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); diff --git a/test/safe_math/div.js b/test/safe_math/div.js index f6ffc15..f1d4b84 100644 --- a/test/safe_math/div.js +++ b/test/safe_math/div.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); diff --git a/test/safe_math/mod.js b/test/safe_math/mod.js index 82fb143..578052c 100644 --- a/test/safe_math/mod.js +++ b/test/safe_math/mod.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); diff --git a/test/safe_math/mul.js b/test/safe_math/mul.js index 0c10377..57beb0f 100644 --- a/test/safe_math/mul.js +++ b/test/safe_math/mul.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); diff --git a/test/safe_math/sub.js b/test/safe_math/sub.js index f09399f..f2ebb29 100644 --- a/test/safe_math/sub.js +++ b/test/safe_math/sub.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const utils = require('../test_lib/utils'); diff --git a/test/test_lib/event_decoder.js b/test/test_lib/event_decoder.js index 6cbb9c0..6f1cf87 100644 --- a/test/test_lib/event_decoder.js +++ b/test/test_lib/event_decoder.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const web3 = require('../test_lib/web3.js'); class Event { diff --git a/test/test_lib/utils.js b/test/test_lib/utils.js index d79c630..ae8be1a 100644 --- a/test/test_lib/utils.js +++ b/test/test_lib/utils.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const BN = require('bn.js'); const assert = require('assert'); diff --git a/test/test_lib/web3.js b/test/test_lib/web3.js index b308333..9020bf6 100644 --- a/test/test_lib/web3.js +++ b/test/test_lib/web3.js @@ -13,6 +13,8 @@ // limitations under the License. +'use strict'; + const Web3 = require('web3'); const web3 = new Web3( diff --git a/test/utility_branded_token/approve.js b/test/utility_branded_token/approve.js index bd0ec9e..22bea16 100644 --- a/test/utility_branded_token/approve.js +++ b/test/utility_branded_token/approve.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const web3 = require('../test_lib/web3'); const UtilityBrandedTokenUtils = require('./utils'); diff --git a/test/utility_branded_token/constructor.js b/test/utility_branded_token/constructor.js index db094eb..b975df4 100644 --- a/test/utility_branded_token/constructor.js +++ b/test/utility_branded_token/constructor.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const UtilityBrandedToken = artifacts.require('UtilityBrandedToken'); diff --git a/test/utility_branded_token/decrease_supply.js b/test/utility_branded_token/decrease_supply.js index c45a4c2..8e89f1b 100644 --- a/test/utility_branded_token/decrease_supply.js +++ b/test/utility_branded_token/decrease_supply.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const UtilityBrandedTokenUtils = require('./utils'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/utility_branded_token/increase_supply.js b/test/utility_branded_token/increase_supply.js index d7cd5a7..6151a26 100644 --- a/test/utility_branded_token/increase_supply.js +++ b/test/utility_branded_token/increase_supply.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const UtilityBrandedTokenUtils = require('./utils'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/utility_branded_token/set_cogateway.js b/test/utility_branded_token/set_cogateway.js index 2fd6b78..7de7b79 100644 --- a/test/utility_branded_token/set_cogateway.js +++ b/test/utility_branded_token/set_cogateway.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const UtilityBrandedTokenUtils = require('./utils'); const { Event } = require('../test_lib/event_decoder.js'); diff --git a/test/utility_branded_token/transfer.js b/test/utility_branded_token/transfer.js index 564ce5b..637b63e 100644 --- a/test/utility_branded_token/transfer.js +++ b/test/utility_branded_token/transfer.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const UtilityBrandedTokenUtils = require('./utils'); const web3 = require('../test_lib/web3'); diff --git a/test/utility_branded_token/transfer_from.js b/test/utility_branded_token/transfer_from.js index 2e0a821..a16e0d9 100644 --- a/test/utility_branded_token/transfer_from.js +++ b/test/utility_branded_token/transfer_from.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const utils = require('../test_lib/utils'); const UtilityBrandedTokenUtils = require('./utils'); const web3 = require('../test_lib/web3'); diff --git a/test/utility_branded_token/utils.js b/test/utility_branded_token/utils.js index 8d4e3cd..06b1c59 100644 --- a/test/utility_branded_token/utils.js +++ b/test/utility_branded_token/utils.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. + +'use strict'; + const TestUtilityBrandedToken = artifacts.require('TestUtilityBrandedToken'); const EIP20TokenMock = artifacts.require('EIP20TokenMock'); const MockOrganization = artifacts.require('MockOrganization');