Skip to content

Commit b7f3d6a

Browse files
Rename fixtureId to FIXTURE_ID in js/tests/helpers for consistency (#41150)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
1 parent 5708adc commit b7f3d6a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

js/tests/helpers/fixture.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const fixtureId = 'fixture'
1+
const FIXTURE_ID = 'fixture'
22

33
export const getFixture = () => {
4-
let fixtureElement = document.getElementById(fixtureId)
4+
let fixtureElement = document.getElementById(FIXTURE_ID)
55

66
if (!fixtureElement) {
77
fixtureElement = document.createElement('div')
8-
fixtureElement.setAttribute('id', fixtureId)
8+
fixtureElement.setAttribute('id', FIXTURE_ID)
99
fixtureElement.style.position = 'absolute'
1010
fixtureElement.style.top = '-10000px'
1111
fixtureElement.style.left = '-10000px'

0 commit comments

Comments
 (0)