Skip to content

Commit cc60692

Browse files
committed
Fix type assertion in OracleDiscoveryService tests for getReputationNetworkOperators
1 parent 8d1ad81 commit cc60692

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ describe('OracleDiscoveryService', () => {
110110
jest
111111
.spyOn(OperatorUtils, 'getReputationNetworkOperators')
112112
.mockResolvedValueOnce(
113-
generateGetReputationNetworkOperatorsResponseByChainId(chainId),
113+
generateGetReputationNetworkOperatorsResponseByChainId(
114+
chainId,
115+
) as any,
114116
);
115117
});
116118

@@ -137,7 +139,9 @@ describe('OracleDiscoveryService', () => {
137139
jest
138140
.spyOn(OperatorUtils, 'getReputationNetworkOperators')
139141
.mockResolvedValueOnce(
140-
generateGetReputationNetworkOperatorsResponseByChainId(chainId),
142+
generateGetReputationNetworkOperatorsResponseByChainId(
143+
chainId,
144+
) as any,
141145
);
142146
});
143147

@@ -154,7 +158,9 @@ describe('OracleDiscoveryService', () => {
154158
jest
155159
.spyOn(OperatorUtils, 'getReputationNetworkOperators')
156160
.mockResolvedValueOnce(
157-
generateGetReputationNetworkOperatorsResponseByChainId(chainId),
161+
generateGetReputationNetworkOperatorsResponseByChainId(
162+
chainId,
163+
) as any,
158164
);
159165
});
160166

@@ -210,7 +216,9 @@ describe('OracleDiscoveryService', () => {
210216
jest
211217
.spyOn(OperatorUtils, 'getReputationNetworkOperators')
212218
.mockResolvedValueOnce(
213-
generateGetReputationNetworkOperatorsResponseByChainId(chainId),
219+
generateGetReputationNetworkOperatorsResponseByChainId(
220+
chainId,
221+
) as any,
214222
);
215223
});
216224

0 commit comments

Comments
 (0)