Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/yarn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ jobs:
run: yarn test-sdk
- working-directory: ./test
run: yarn test-primitives
- working-directory: ./test
run: yarn test-mock
1 change: 1 addition & 0 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"start-dyn-val-release": "cargo build --release && NODE_ENV=production mocha -r ts-node/register --timeout 10000 src/e2e.dynval/*.test.ts",
"test-sdk": "mocha -r ts-node/register --timeout 5000 \"src/sdk/**/*.spec.ts\"",
"test-primitives": "mocha -r ts-node/register --timeout 5000 \"src/primitives/**/*.test.ts\"",
"test-mock": "mocha -r ts-node/register --timeout 5000 \"src/helper/mock/**/*.test.ts\"",
"tendermint-test-local": "cargo build --release && NODE_ENV=production ts-node src/tendermint.test/local.ts",
"tendermint-test-remote": "NODE_ENV=production ts-node src/tendermint.test/remote.ts",
"lint": "tslint -p . && prettier 'src/**/*.{ts, json}' -l",
Expand Down
4 changes: 2 additions & 2 deletions test/src/helper/mock/test/blockSyncMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("Check BlockSyncMessage RLP encoding", function() {
id: new U256(10),
message
});
expect([...msg.rlpBytes()]).deep.equal([195, 4, 10, 192]);
expect(msg.rlpBytes().toString("hex")).deep.equal("c3040ac0");
});

it("ResponseBodyMessage RLP encoding test", function() {
Expand All @@ -27,6 +27,6 @@ describe("Check BlockSyncMessage RLP encoding", function() {
id: new U256(10),
message
});
expect([...msg.rlpBytes()]).deep.equal([196, 5, 10, 193, 192]);
expect(msg.rlpBytes().toString("hex")).deep.equal("c8050ac5840204c1c0");
});
});
2 changes: 1 addition & 1 deletion test/src/helper/mock/test/txSyncMessage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ describe("Check TransactionSyncMessage RLP encoding", function() {
type: "transactions",
data: []
});
expect([...msg.rlpBytes()]).deep.equal([192]);
expect(msg.rlpBytes().toString("hex")).deep.equal("830100c0");
});
});