File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -278,8 +278,7 @@ class DOM {
278278 return this . iconSymbols
279279 }
280280
281- const formeoSprite = document . getElementById ( formeoSpriteId )
282- const iconSymbolNodes = formeoSprite . querySelectorAll ( 'svg symbol' )
281+ const iconSymbolNodes = document . querySelectorAll ( `#${ formeoSpriteId } svg symbol` )
283282
284283 const createSvgIconConfig = symbolId => ( {
285284 tag : 'svg' ,
Original file line number Diff line number Diff line change 11import pkg from '../../../package.json' with { type : 'json' }
22
3- const isProd = import . meta. env . PROD
3+ const isProd = import . meta. env ? .PROD
44
55const name = pkg . name
66const version = pkg . version
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const { snapshot } = require('node:test')
22const { basename, join, dirname } = require ( 'node:path' )
33const { JSDOM } = require ( 'jsdom' )
44
5- const { window } = new JSDOM ( ` <!DOCTYPE html><p>Hello World</p>` )
5+ const { window } = new JSDOM ( ' <!DOCTYPE html><p>Hello World</p>' )
66global . window = window
77global . document = window . document
88global . navigator = window . navigator
You can’t perform that action at this time.
0 commit comments