Skip to content

Commit be5d9c1

Browse files
committed
Fix lint
1 parent 8a399fb commit be5d9c1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/__tests__/pretty-dom.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
/* global globalThis */
12
import {prettyDOM as prettyDOMImpl} from '../pretty-dom'
23
import {render, renderIntoDocument} from './helpers/test-utils'
34

45
function prettyDOM(...args) {
56
let originalProcess
67
// this shouldn't be defined in this environment in the first place
7-
if (typeof process !== 'undefined') {
8+
if (typeof process === 'undefined') {
9+
throw new Error('process is no longer defined. Remove this setup code.')
10+
} else {
811
originalProcess = process
912
// TODO: Delete to test browser environments
1013
// delete globalThis.process
11-
} else {
12-
throw new Error('process is no longer defined. Remove this setup code.')
1314
}
1415

1516
try {

0 commit comments

Comments
 (0)