commit
d6b9bb2d73
@ -15,7 +15,8 @@
|
|||||||
"build:commonjs": "tsc",
|
"build:commonjs": "tsc",
|
||||||
"build:es6": "tsc -m es6 --outDir lib-esm",
|
"build:es6": "tsc -m es6 --outDir lib-esm",
|
||||||
"build": "npm run clean && run-p build:*",
|
"build": "npm run clean && run-p build:*",
|
||||||
"lint": "tslint src/ts/**/*"
|
"lint": "tslint src/ts/**/*",
|
||||||
|
"test": "run-s clean build:commonjs && mocha lib/test/**/*.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -26,7 +27,11 @@
|
|||||||
"node": ">=6.0.0"
|
"node": ">=6.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/chai": "^3.5.2",
|
||||||
|
"@types/mocha": "^2.2.41",
|
||||||
"awesome-typescript-loader": "^3.1.3",
|
"awesome-typescript-loader": "^3.1.3",
|
||||||
|
"chai": "^3.5.0",
|
||||||
|
"mocha": "^3.4.1",
|
||||||
"npm-run-all": "^4.0.2",
|
"npm-run-all": "^4.0.2",
|
||||||
"shx": "^0.2.2",
|
"shx": "^0.2.2",
|
||||||
"tslint": "^5.3.2",
|
"tslint": "^5.3.2",
|
||||||
|
12
test/0x.js.ts
Normal file
12
test/0x.js.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import {ZeroEx} from '../src/ts/0x.js';
|
||||||
|
import {expect} from 'chai';
|
||||||
|
import 'mocha';
|
||||||
|
|
||||||
|
describe('ZeroEx library', () => {
|
||||||
|
describe('#verifySignature', () => {
|
||||||
|
it('should return undefined', () => {
|
||||||
|
const zeroEx = new ZeroEx();
|
||||||
|
expect(zeroEx.verifySignature()).to.be.undefined;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
@ -10,6 +10,7 @@
|
|||||||
"strictNullChecks": true
|
"strictNullChecks": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"./src/ts/**/*"
|
"./src/**/*",
|
||||||
|
"./test/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user