mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Prove that coverage does not work
This commit is contained in:
@ -33,6 +33,8 @@ export const getPluginTemplateEditor = (
|
|||||||
const setCodeRef = useRef<(code: string) => void>();
|
const setCodeRef = useRef<(code: string) => void>();
|
||||||
const getCodeRef = useRef<() => string>();
|
const getCodeRef = useRef<() => string>();
|
||||||
|
|
||||||
|
throw new Error('I was definitely being called!');
|
||||||
|
|
||||||
useImperativeHandle(ref, () => ({
|
useImperativeHandle(ref, () => ({
|
||||||
setCode: (code) => {
|
setCode: (code) => {
|
||||||
// if the editor is not yet initialized, store the initial code in a ref to set it later
|
// if the editor is not yet initialized, store the initial code in a ref to set it later
|
||||||
|
Reference in New Issue
Block a user