Skip to content

Commit bbad1de

Browse files
committed
Assert serialized integrations works as part of usage
Signed-off-by: Simeon Widdis <[email protected]>
1 parent 16dd572 commit bbad1de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

server/adaptors/integrations/__test__/json_repository.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ const fetchSerializedIntegrations = async (): Promise<Result<SerializedIntegrati
3232
const serializedIntegrationResults = await Promise.all(
3333
(readers.filter((x) => x !== null) as IntegrationReader[]).map((r) => r.serialize())
3434
);
35-
return foldResults(serializedIntegrationResults);
35+
const folded = foldResults(serializedIntegrationResults);
36+
expectOkResult(folded);
37+
return folded;
3638
};
3739

3840
describe('The Local Serialized Catalog', () => {
@@ -49,7 +51,7 @@ describe('The Local Serialized Catalog', () => {
4951

5052
for (const integ of await repository.getIntegrationList()) {
5153
const validationResult = await deepCheck(integ);
52-
await expect(validationResult).toHaveProperty('ok', true);
54+
expectOkResult(validationResult);
5355
}
5456
});
5557

0 commit comments

Comments
 (0)