Skip to content

Commit

Permalink
fix typing issues so it works with node 12 ,14, 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjono1 committed Jan 4, 2022
1 parent 270c730 commit 0b40e6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__tests__/label/label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ export interface spacedLabel {
convertSchema({ debug: true, useLabelAsInterfaceName: true }, schema);
expect(true).toBe(false);
} catch (error) {
expect(error.message).toBe(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
expect(error && (error as any).message).toBe(
'At least one "object" does not have .label(\'\'). Details: {"type":"object","flags":{"id":"Test"},"keys":{"name":{"type":"string"}}}'
);
}
Expand Down

0 comments on commit 0b40e6b

Please sign in to comment.