chore(catalog-model): Remove useless test
The metadata field is required by schema, and this was testing if it was optional, passing only because it was misspelled. Signed-off-by: Adam Harvey <33203301+adamdmharvey@users.noreply.github.com>
This commit is contained in:
@@ -65,11 +65,6 @@ describe('FieldFormatEntityPolicy', () => {
|
||||
await expect(policy.enforce(data)).rejects.toThrow(/kind/);
|
||||
});
|
||||
|
||||
it('handles missing metadata gracefully', async () => {
|
||||
delete data.medatata;
|
||||
await expect(policy.enforce(data)).resolves.toBe(data);
|
||||
});
|
||||
|
||||
it('handles missing spec gracefully', async () => {
|
||||
delete data.spec;
|
||||
await expect(policy.enforce(data)).resolves.toBe(data);
|
||||
|
||||
Reference in New Issue
Block a user