frontend-plugin-api: add test to make sure getExtension complains if ID is unknown
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -149,6 +149,8 @@ describe('createPlugin', () => {
|
||||
expect(plugin).toBeDefined();
|
||||
|
||||
expect(plugin.getExtension('test/1')).toBe(Extension1);
|
||||
// @ts-expect-error
|
||||
expect(plugin.getExtension('nonexistent')).toBeUndefined();
|
||||
|
||||
await renderWithEffects(
|
||||
createTestAppRoot({
|
||||
|
||||
Reference in New Issue
Block a user