//Sealious.ChipTypes[chip_type_name] = Sealious.ChipTypes[chip_type_name].bind(Sealious.ChipTypes[chip_type_name], null); //null here corresponds to "module_path" of chip's constructor
}
Sealious.init=function(mode,layer_name){
Sealious.Logger=require("./logger/logger.js");
require("./base-chips/_base-chips.js");
Sealious.PluginManager.load_plugins();
this.mode=mode?mode:"local";
this.layer_name=layer_name?layer_name:null;
}
Sealious.start=function(){
Core.check_version();
returnSealious.ChipManager.start_chips();
}
Sealious.test=function(){
varthings_to_test=[
Sealious.ResourceManager,
Sealious.ChipTypes.FieldType,
require("./chip-types/resource-type-field"),
]
Sealious.init();
things_to_test.forEach(function(thing){
thing.test_init&&thing.test_init();
})
Sealious.start().then(function(){
things_to_test.forEach(function(thing){
thing.test_start&&thing.test_start();
})
//run(); //function created by Mocha. Present only if Mocha is run with --delay option from the command line (as it is when running `npm test`)