+ vscode night owl theme

This commit is contained in:
committer
2024-05-15 07:15:59 -05:00
parent e2c14487aa
commit d18120752c
51 changed files with 19760 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import React from 'react';
import ReactDOM from 'react-dom';
import * as TestUtils from 'react-dom/test-utils';
import CheckboxWithLabel from '../CheckboxWithLabel';
it('CheckboxWithLabel changes the text after click', () => {
// Render a checkbox with label in the document
const checkbox = TestUtils.renderIntoDocument(
<CheckboxWithLabel labelOn="On" labelOff="Off" />
)
const checkboxNode = ReactDOM.findDOMNode(checkbox)
// Verify that it's Off by default
expect(checkboxNode.textContent).toEqual('Off')
// Simulate a click and verify that it is now On
TestUtils.Simulate.change(
TestUtils.findRenderedDOMComponentWithTag(checkbox, 'input')
)
expect(checkboxNode.textContent).toEqual('On')
})