Skip to content

Commit

Permalink
randomness test
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Kov committed Aug 1, 2022
1 parent b41cd6f commit 3db99d2
Show file tree
Hide file tree
Showing 4 changed files with 984 additions and 901 deletions.
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
],
"scripts": {
"build": "tsc --module commonjs",
"test": "npx jest",
"postbuild": "cp package.json dist && cp README.md dist && cp -R docs",
"lint": "eslint ./src --ext .js,.ts",
"ci-pipeline": "yarn run lint && yarn run test && yarn run typecheck"
Expand All @@ -39,7 +40,7 @@
"@ethersproject/bignumber": "^5.4.5",
"@typechain/ethers-v5": "^8.0.5",
"@typechain/hardhat": "^3.0.0",
"@types/jest": "^26.0.22",
"@types/jest": "^28.1.6",
"@types/prompts": "^2.0.12",
"@typescript-eslint/eslint-plugin": "4",
"babel-jest": "^26.6.3",
Expand All @@ -55,7 +56,7 @@
"ethers-eip712": "^0.2.0",
"husky": "^6.0.0",
"istanbul-badges-readme": "^1.2.1",
"jest": "^26.6.3",
"jest": "^28.1.3",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"standard-version": "^9.2.0",
Expand All @@ -64,7 +65,9 @@
"ts-node": "^9.1.1",
"tslib": "^2.2.0",
"typescript": "^4.2.4",
"web3": "^2.0.0-alpha.1"
"web3": "^2.0.0-alpha.1",
"@types/mocha": "^9.1.1",
"ts-jest": "^28.0.7"
},
"bugs": {
"url": "https://github.com/Polymarket/clob-order-utils/issues"
Expand Down
7 changes: 7 additions & 0 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
var utils = require("../dist/utils")

describe("generateOrderSalt", () => {
it("gets new salt each time", () => {
expect(utils.generateOrderSalt()).not.toBe(utils.generateOrderSalt());
})
})
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compileOnSave": false,
"include": ["src/**/*"],
"include": ["src/**/*", "test/utils.test.ts"],
"exclude": ["src/**/*.test.ts", "test/*"],
"compilerOptions": {
"baseUrl": "./",
Expand Down
Loading

0 comments on commit 3db99d2

Please sign in to comment.