Skip to content

Commit

Permalink
INT-3308: Added a test
Browse files Browse the repository at this point in the history
  • Loading branch information
danoaky-tiny committed May 17, 2024
1 parent a77b84b commit d500310
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ts/browser/EditorInitTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ describe('EditorInitTest', () => {
ctx.reRender({ ...defaultProps, disabled: true });
Assertions.assertEq('Should be readonly mode', true, '4' === version ? ctx.editor.readonly : ctx.editor.mode.get() === 'readonly');
});

it('Using an overriden props will cause a TS error', async () => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
using _ = await render({
init: {
// @ts-expect-error Overriden props
target: document.createElement('div'), readonly: true, selector: 'textarea#my-id', license_key: 'gpl'
}
});
});
})
);
});

0 comments on commit d500310

Please sign in to comment.