diff --git a/.gitignore b/.gitignore index e6c26dc825..2fa851ea69 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,7 @@ site/.dumi/tmp-production # Other !/src/lib -!/__tests__/unit/lib \ No newline at end of file +!/__tests__/unit/lib + +# Package +package-lock.json \ No newline at end of file diff --git a/__tests__/main.ts b/__tests__/main.ts index 8ab319088a..51ce8e3365 100644 --- a/__tests__/main.ts +++ b/__tests__/main.ts @@ -118,7 +118,7 @@ async function plot() { currentContainer = document.createElement('div'); app.append(currentContainer); const render = tests[selectChart.value]; - render(currentContainer); + render && render(currentContainer); } function createOption(key) {