parent
caee065937
commit
79c6c4f2a5
@ -1,18 +1,18 @@
|
||||
import React from 'react'
|
||||
|
||||
let render
|
||||
beforeAll(() => {
|
||||
process.env.RTL_SKIP_AUTO_CLEANUP = 'true'
|
||||
const rtl = require('../')
|
||||
render = rtl.render
|
||||
process.env.ATL_SKIP_AUTO_CLEANUP = 'true'
|
||||
const atl = require('../')
|
||||
render = atl.render
|
||||
})
|
||||
|
||||
// This one verifies that if RTL_SKIP_AUTO_CLEANUP is set
|
||||
// This one verifies that if ATL_SKIP_AUTO_CLEANUP is set
|
||||
// then we DON'T auto-wire up the afterEach for folks
|
||||
test('first', () => {
|
||||
render(<div>hi</div>)
|
||||
render(`<div>hi</div>`)
|
||||
})
|
||||
|
||||
test('second', () => {
|
||||
expect(document.body.innerHTML).toEqual('<div><div>hi</div></div>')
|
||||
expect(document.body.innerHTML).toEqual(
|
||||
'<div><div class="ng-scope">hi</div></div>',
|
||||
)
|
||||
})
|
||||
|
Loading…
Reference in new issue