Skip to content

Commit 8577273

Browse files
committed
chore: less strict warnings
1 parent 0c05b0a commit 8577273

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/zeebe-element-templates-json-schema/test/fixtures/binding-type/additional-property.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,4 @@ export const template = {
1616
]
1717
};
1818

19-
export const errors = null;
20-
21-
export const warnings = [
22-
{
23-
keyword: 'isDeprecated',
24-
dataPath: '/properties/0',
25-
message: 'Hidden property must specify either "value" or "generatedValue"'
26-
}
27-
];
19+
export const errors = null;

packages/zeebe-element-templates-json-schema/test/spec/validationSpec.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ function createTest(name, file, it) {
5555

5656
// then
5757
expect(errors).to.eqlErrors(expectedErrors);
58-
expect(warnings).to.eql(expectedWarnings);
58+
59+
// less strict check for warnings
60+
if (expectedWarnings) {
61+
expect(warnings).to.eql(expectedWarnings);
62+
} else if (warnings && warnings.length > 0) {
63+
64+
// log warnings without failing the test
65+
console.warn('Deprecation warnings found:', warnings);
66+
}
5967
});
6068
}
6169

0 commit comments

Comments
 (0)