Skip to content

Commit

Permalink
chore: fix Happy DOM spelling [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 25, 2022
1 parent 72aaa1e commit 9c18562
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PrismicToolbar.tsx
Expand Up @@ -43,15 +43,16 @@ export const PrismicToolbar = ({
script.dataset.repositoryName = repositoryName;
script.dataset.type = type;

// Disable happy-dom `<script>` evaluation during tests.
// Disable Happy DOM `<script>` evaluation during
// tests.
//
// This is a patch ONLY INCLUDED DURING TESTS. It will
// be pruned during code minification in non-test
// environments.
//
// @see https://github.com/capricorn86/happy-dom/blob/02ae081e36f990c06171eda44f9d885fd9413d73/packages/happy-dom/src/nodes/html-script-element/HTMLScriptElement.ts#L191-L209
if (process.env.NODE_ENV === "test") {
// @ts-expect-error - `_evaluateScript` is a happy-dom-specific property.
// @ts-expect-error - `_evaluateScript` is a Happy DOM-specific property.
script._evaluateScript = false;
}

Expand Down

0 comments on commit 9c18562

Please sign in to comment.