mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 06:16:01 +00:00
remove deprecation warning; put tests back to previous method; fix eslint error
This commit is contained in:
parent
8cc139e54c
commit
3a50dbdfdd
@ -1,5 +1,5 @@
|
||||
var assert = require('assert');
|
||||
var Embark = require('embark')();
|
||||
var Embark = require('embark');
|
||||
var EmbarkSpec = Embark.initTests();
|
||||
var web3 = EmbarkSpec.web3;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
var assert = require('assert');
|
||||
var Embark = require('embark')();
|
||||
var Embark = require('embark');
|
||||
var EmbarkSpec = Embark.initTests();
|
||||
var web3 = EmbarkSpec.web3;
|
||||
|
||||
|
16
lib/index.js
16
lib/index.js
@ -13,7 +13,7 @@ var Swarm = require('./upload/swarm.js');
|
||||
|
||||
var version = require('../package.json').version;
|
||||
|
||||
var Embark = function () {
|
||||
var Embark = (function () {
|
||||
function initConfig (env, options) {
|
||||
var Events = require('./core/events.js');
|
||||
var Logger = require('./core/logger.js');
|
||||
@ -196,19 +196,7 @@ var Embark = function () {
|
||||
upload: upload
|
||||
};
|
||||
|
||||
}();
|
||||
|
||||
Embark.initTests = function() {
|
||||
console.error("=============================".green);
|
||||
console.error("deprecated: Starting with Embark 2.5.0 the Embark object needs to be initialized".red);
|
||||
console.log("replace:");
|
||||
console.log("var Embark = require('embark');");
|
||||
console.log("with:");
|
||||
console.log("var Embark = require('embark')();");
|
||||
console.error("=============================".green);
|
||||
var embark = Embark();
|
||||
return embark.initTests();
|
||||
};
|
||||
})();
|
||||
|
||||
module.exports = Embark;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
var assert = require('assert');
|
||||
var Embark = require('embark')();
|
||||
var Embark = require('embark');
|
||||
var EmbarkSpec = Embark.initTests();
|
||||
var web3 = EmbarkSpec.web3;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
var assert = require('assert');
|
||||
var Embark = require('embark')();
|
||||
var Embark = require('embark');
|
||||
var EmbarkSpec = Embark.initTests();
|
||||
var web3 = EmbarkSpec.web3;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
var assert = require('assert');
|
||||
var Embark = require('embark')();
|
||||
var Embark = require('embark');
|
||||
var EmbarkSpec = Embark.initTests();
|
||||
var web3 = EmbarkSpec.web3;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user