Skip to content

Commit

Permalink
scale rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dxq613 committed Jun 7, 2017
1 parent 09c7229 commit ba9c35c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 3 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import util from './src/util';
import Scale from './src/scale/index';

export default {
util
util,
Scale
};
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
},
"pre-commit": {
"run": [
"lint",
"test"
"lint"
],
"silent": false
},
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions src/scale/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @fileOverview Scale entry, used to reference all the scales
* @author [email protected]
*/

import Base from './base';
export default {
Base
};
33 changes: 33 additions & 0 deletions test/scale/base-spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

const expect = require('chai').expect
import Scale from '../build/g2';

describe('scale base test', () => {
it('cfg', function (argument) {
var scale = new Scale({
ticks: [1,2,3,4]
});
expect(scale.ticks.length).to.be(4);
});
it('init', function() {

});
it('translate', function() {

});
it('invert', function() {

});
it('scale', function() {

});
it('getTicks', function() {

});
it('clone', function() {

});
it('change', function() {

});
});

0 comments on commit ba9c35c

Please sign in to comment.