mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
26 lines
733 B
JavaScript
26 lines
733 B
JavaScript
var Path = require('fire-path');
|
|
|
|
describe('core level', function () {
|
|
it ('should success', function () {
|
|
// simple init
|
|
Editor.require( 'app://engine-framework/src' );
|
|
|
|
// simple init
|
|
if ( !Editor.assets ) Editor.assets = {};
|
|
if ( !Editor.metas ) Editor.metas = {};
|
|
if ( !Editor.inspectors ) Editor.inspectors = {};
|
|
|
|
// init engine-framework
|
|
Editor.require('app://engine-framework');
|
|
|
|
// init asset-db
|
|
var AssetDB = Editor.require('app://asset-db');
|
|
Editor.assetdb = new AssetDB({
|
|
'cwd': Path.join( __dirname, 'playground' ),
|
|
'library': 'library',
|
|
});
|
|
|
|
Editor.require( 'app://engine' );
|
|
});
|
|
});
|