From 402ee19722fc9da98c84c8b11ec51547f485e140 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 7 Jun 2018 20:09:07 -0400 Subject: [PATCH] default contracts fields --- lib/tests/test.js | 2 +- test_apps/test_app/test/simple_storage_deploy_spec.js | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/tests/test.js b/lib/tests/test.js index 1e21442c..aa0ea821 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -126,7 +126,7 @@ class Test { }; } if (!options.contracts) { - throw new Error(__('No contracts specified in the options')); + options.contracts = {}; } self.ready = false; diff --git a/test_apps/test_app/test/simple_storage_deploy_spec.js b/test_apps/test_app/test/simple_storage_deploy_spec.js index b74acc33..e4d24241 100644 --- a/test_apps/test_app/test/simple_storage_deploy_spec.js +++ b/test_apps/test_app/test/simple_storage_deploy_spec.js @@ -2,13 +2,7 @@ const SimpleStorage = embark.require('Embark/contracts/SimpleStorage'); let accounts; -config({ - contracts: { - "SimpleStorage": { - args: [100] - } - } -}, (err, theAccounts) => { +config({}, (err, theAccounts) => { accounts = theAccounts; });