Skip to content

Commit 024335a

Browse files
committed
string for toMatch(regex)
1 parent e3243ae commit 024335a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/tendermint-rpc/src/comet1/comet1client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
130130
expect(response.proof).toBeUndefined();
131131
expect(response.log).toEqual("exists");
132132
expect(response.info).toEqual("");
133-
expect(response.height).toMatch(nonNegativeIntegerMatcher);
133+
expect(response.height?.toString()).toMatch(nonNegativeIntegerMatcher);
134134

135135
client.disconnect();
136136
});

packages/tendermint-rpc/src/comet38/comet38client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
119119
expect(response.proof).toBeUndefined();
120120
expect(response.log).toEqual("exists");
121121
expect(response.info).toEqual("");
122-
expect(response.height).toMatch(nonNegativeIntegerMatcher);
122+
expect(response.height?.toString()).toMatch(nonNegativeIntegerMatcher);
123123

124124
client.disconnect();
125125
});

packages/tendermint-rpc/src/tendermint34/tendermint34client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
126126
expect(response.proof).toBeUndefined();
127127
expect(response.log).toEqual("exists");
128128
expect(response.info).toEqual("");
129-
expect(response.height).toMatch(nonNegativeIntegerMatcher);
129+
expect(response.height?.toString()).toMatch(nonNegativeIntegerMatcher);
130130

131131
client.disconnect();
132132
});

packages/tendermint-rpc/src/tendermint37/tendermint37client.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function defaultTestSuite(rpcFactory: () => RpcClient, expected: ExpectedValues)
119119
expect(response.proof).toBeUndefined();
120120
expect(response.log).toEqual("exists");
121121
expect(response.info).toEqual("");
122-
expect(response.height).toMatch(nonNegativeIntegerMatcher);
122+
expect(response.height?.toString()).toMatch(nonNegativeIntegerMatcher);
123123

124124
client.disconnect();
125125
});

0 commit comments

Comments
 (0)