Skip to content

Commit

Permalink
Tests: specify 'use strict' in each JS file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Banks committed Feb 4, 2019
1 parent 22c4e4a commit d31c5f0
Show file tree
Hide file tree
Showing 42 changed files with 123 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/branded_token/accept_stake_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 2 additions & 0 deletions test/branded_token/convert_to_branded_tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions test/branded_token/convert_to_value_tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/lift_all_restrictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/lift_restriction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/redeem.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/reject_stake_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/request_stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/revoke_stake_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/set_name.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/set_symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/transferFrom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/branded_token/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/accept_stake_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/approve_token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/request_stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/revert_stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/revoke_stake_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/transfer_token.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/gateway_composer/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/internal/register_internal_actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/internal/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/safe_math/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/safe_math/div.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/safe_math/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/safe_math/mul.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/safe_math/sub.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
3 changes: 3 additions & 0 deletions test/test_lib/event_decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions test/test_lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions test/test_lib/web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
// limitations under the License.


'use strict';

const Web3 = require('web3');

const web3 = new Web3(
Expand Down
3 changes: 3 additions & 0 deletions test/utility_branded_token/approve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/utility_branded_token/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/utility_branded_token/decrease_supply.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/utility_branded_token/increase_supply.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/utility_branded_token/set_cogateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions test/utility_branded_token/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading

0 comments on commit d31c5f0

Please sign in to comment.