aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-05-24 19:37:54 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-05-24 19:37:54 +0800
commitc50b32ee3f740139623d4044f8110d8ca2b26062 (patch)
tree81e6033b6aae7a44c9aadde495a4da2df5239438
parenta3ff1e42bf3700dbfd02bc7e38cd6bbc336404e1 (diff)
downloaddexon-0x-contracts-c50b32ee3f740139623d4044f8110d8ca2b26062.tar.gz
dexon-0x-contracts-c50b32ee3f740139623d4044f8110d8ca2b26062.tar.zst
dexon-0x-contracts-c50b32ee3f740139623d4044f8110d8ca2b26062.zip
Add initial testing config and a dummy test
-rw-r--r--package.json10
-rw-r--r--test/0x.js.ts12
2 files changed, 20 insertions, 2 deletions
diff --git a/package.json b/package.json
index c395340eb..7c5ff8b7a 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,8 @@
"build:commonjs": "tsc",
"build:es6": "tsc -m es6 --outDir lib-esm",
"build": "npm run clean && run-p build:*",
- "lint": "tslint src/ts/**/*"
+ "lint": "tslint src/ts/**/*",
+ "test": "mocha -r ts-node/register test/**/*"
},
"repository": {
"type": "git",
@@ -26,12 +27,17 @@
"node": ">=6.0.0"
},
"devDependencies": {
+ "@types/chai": "^3.5.2",
+ "@types/mocha": "^2.2.41",
"awesome-typescript-loader": "^3.1.3",
+ "chai": "^3.5.0",
+ "mocha": "^3.4.1",
"npm-run-all": "^4.0.2",
"shx": "^0.2.2",
+ "ts-node": "^3.0.4",
"tslint": "^5.3.2",
"tslint-config-0xproject": "^0.0.2",
"typescript": "^2.3.3",
"webpack": "^2.6.0"
}
-}
+} \ No newline at end of file
diff --git a/test/0x.js.ts b/test/0x.js.ts
new file mode 100644
index 000000000..9538c5eb6
--- /dev/null
+++ b/test/0x.js.ts
@@ -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;
+ });
+ });
+});