Skip to content

Commit

Permalink
[tests] actually add the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
almet committed Apr 1, 2024
1 parent 28d7cff commit 05a25ed
Show file tree
Hide file tree
Showing 2 changed files with 553 additions and 0 deletions.
12 changes: 12 additions & 0 deletions umap/static/umap/js/modules/dompurify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {default as DOMPurifyInitializer} from '../../vendors/dompurify/purify.es.mjs'
import { JSDOM } from 'jsdom'

console.log(DOMPurifyInitializer)

export default function getPurify() {
if (typeof window === 'undefined') {
return DOMPurifyInitializer(new JSDOM('').window)
} else {
return DOMPurifyInitializer(window)
}
}
Loading

0 comments on commit 05a25ed

Please sign in to comment.