Skip to content

Commit

Permalink
refactor: window.CSS to make tests pass on Jest
Browse files Browse the repository at this point in the history
  • Loading branch information
lrodrigues-newstore committed Mar 3, 2023
1 parent ffdc382 commit 220ee6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/css-escape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ function cssEscapePolyfill(ident: string): string {
return result
}

export const cssEscape = CSS?.escape ?? cssEscapePolyfill
export const cssEscape = window.CSS?.escape ?? cssEscapePolyfill

0 comments on commit 220ee6c

Please sign in to comment.