Skip to content

Commit e92de3d

Browse files
committed
fix tests
1 parent 969bfad commit e92de3d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

x-pack/platform/plugins/shared/ingest_hub/public/onboarding/aws_service_matrix.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,16 @@ describe('AWS_SERVICES_MATRIX', () => {
6565
});
6666

6767
it('has only valid delivery method values', () => {
68-
entry.deliveryMethods.forEach((method) => {
68+
entry.deliveryMethods.forEach(({ method }) => {
6969
expect(VALID_DELIVERY_METHODS).toContain(method);
7070
});
7171
});
7272

73+
it('has exactly one preferred delivery method', () => {
74+
const preferred = entry.deliveryMethods.filter((dm) => dm.preferred === true);
75+
expect(preferred).toHaveLength(1);
76+
});
77+
7378
it('has a non-empty packageName', () => {
7479
expect(entry.packageName).toBeTruthy();
7580
});

0 commit comments

Comments
 (0)