mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
18 lines
577 B
JavaScript
18 lines
577 B
JavaScript
require('../src');
|
|
|
|
describe('Environment Variables', function() {
|
|
it('cc.sys.platform should be cc.sys.EDITOR_CORE', function() {
|
|
expect(cc.sys.platform).to.be.equal(cc.sys.EDITOR_CORE);
|
|
});
|
|
it('CC_EDITOR should be true', function() {
|
|
expect(CC_EDITOR).to.be.true;
|
|
});
|
|
it('CC_TEST should be true', function() {
|
|
expect(CC_TEST).to.be.true;
|
|
});
|
|
|
|
// test in page-level
|
|
var spawnRunner = require('./lib/spawn-runner');
|
|
spawnRunner(this.title, require('path').resolve(__dirname, 'test-env-page'), false, true, true);
|
|
});
|