Skip to content

Commit 3c481bb

Browse files
committed
Fixed unit test
1 parent 2a24d5d commit 3c481bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jschema/__tests__/properties/boolean.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Boolean properties', () => {
3131

3232
it('BooleanProperty without title', async () => {
3333
const { component, onChange } = renderSchemaWithSingleProperty({ type: 'boolean' }, false);
34-
const title = screen.getByText('Boolean argument');
34+
const title = screen.getByText('testProp');
3535
checkBold(title, false);
3636
expect(title).toBeDefined();
3737
const switcher = screen.getByRole('switch');
@@ -46,7 +46,7 @@ describe('Boolean properties', () => {
4646

4747
it('BooleanProperty referenced', async () => {
4848
const { component, onChange } = renderSchemaWithReferencedProperty({ type: 'boolean' });
49-
const title = screen.getByText('Boolean argument');
49+
const title = screen.getByText('testProp');
5050
checkBold(title, false);
5151
expect(title).toBeDefined();
5252
const switcher = screen.getByRole('switch');
@@ -59,7 +59,7 @@ describe('Boolean properties', () => {
5959
expect(onChange).toHaveBeenCalledWith({ testProp: false });
6060
});
6161

62-
it.only('Required BooleanProperty initialized to false', async () => {
62+
it('Required BooleanProperty initialized to false', async () => {
6363
const { component } = renderSchema(
6464
{
6565
type: 'object',

0 commit comments

Comments
 (0)