diff --git a/test/schemaValidation.test.ts b/test/schemaValidation.test.ts index bbd4b069..e9c8e5d5 100644 --- a/test/schemaValidation.test.ts +++ b/test/schemaValidation.test.ts @@ -1194,8 +1194,9 @@ obj: languageService.configure(kubernetesSettings); const content = `apiVersion: route.openshift.io/v1\nkind: Route\nfoo: bar`; const result = await parseSetup(content, 'invalid-oc.yml'); - expect(result.length).to.eq(1); - expect(result[0].message).to.eq('Property foo is not allowed.'); + expect(result.length).to.eq(2); + expect(result[0].message).to.eq('Missing property "spec".'); + expect(result[1].message).to.eq('Property foo is not allowed.'); }); it('custom kubernetes schema version and openshift custom resource definition (CRD) should return validation errors', async () => {