From 329af9f3486fe569ffc58e79df8be62249dced66 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 18 Jun 2018 12:46:39 -0400 Subject: [PATCH] warn about EmbarkSpec deprecation --- lib/tests/run_tests.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/tests/run_tests.js b/lib/tests/run_tests.js index adc9672e..902231ff 100644 --- a/lib/tests/run_tests.js +++ b/lib/tests/run_tests.js @@ -56,12 +56,16 @@ module.exports = { global.assert = assert; global.config = test.config.bind(test); - global.deployAll = function () { - console.error(__('%s is not supported anymore', 'deployAll').red); + let deprecatedWarning = function() { + console.error(__('%s are not supported anymore', 'EmbarkSpec & deployAll').red); console.info(__('You can learn about the new revamped tests here: %s', 'https://embark.status.im/docs/testing.html'.underline)); process.exit(); }; + global.deployAll = deprecatedWarning; + global.EmbarkSpec = {}; + global.EmbarkSpec.deployAll = deprecatedWarning; + // Override require to enable `require('Embark/contracts/contractName');` const Module = require('module'); const originalRequire = require('module').prototype.require;