fix(test)

This commit is contained in:
李正学 2018-10-31 12:18:03 +08:00
parent d6498732a7
commit 979ed4cbbe
4 changed files with 13 additions and 9 deletions

View File

@ -1,8 +1,9 @@
module.exports = {
babelrc: {
presets: [
'@babel/env',
'es2015',
'stage-0'
'stage-0',
],
sourceMaps: 'inline'
},

View File

@ -21,6 +21,7 @@
"license": "MIT",
"devDependencies": {
"@antv/util": "~1.2.5",
"@babel/preset-env": "^7.1.0",
"babel-cli": "~6.26.0",
"babel-core": "~6.26.0",
"babel-eslint": "~8.0.3",
@ -50,7 +51,7 @@
"serve-static": "^1.13.2",
"shelljs": "~0.7.8",
"string-replace-loader": "~1.3.0",
"torchjs": "~1.0.4",
"torchjs": "~2.1.0",
"uglify-js": "~3.1.10",
"webpack": "~3.10.0"
},
@ -108,6 +109,7 @@
"lodash": "^4.17.5",
"rbush": "^2.0.2",
"three": "^0.96.0",
"torchjs": "^2.1.0",
"venn.js": "^0.2.20",
"viewport-mercator-project": "^5.2.0",
"wolfy87-eventemitter": "~5.2.4"

View File

@ -1,8 +1,9 @@
const expect = require('chai').expect;
const Base= require('../../../src/core/base');
const expect = require('chai').expect;
const Base = require('../../../src/core/base');
describe('core base Test', function() {
const base1 = new Base();
it('test getDefaultcfg',function(){
it('test getDefaultcfg', function() {
expect(base1.getDefaultCfg()).to.be.an('object');
})
});
});