Skip to content

Commit

Permalink
test: clean up container div
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Feb 27, 2020
1 parent f3ee461 commit e1599d5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/Checkbox/Checkbox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ describe('refs', () => {
expect(document.activeElement.type).toBeUndefined();
wrapper.instance().focus();
expect(document.activeElement.type).toEqual('checkbox');
document.body.removeChild(container);
});

it('should set indeterminate when accepting refs', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/Select/Select-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ describe('refs', () => {
expect(document.activeElement.type).toBeUndefined();
wrapper.instance().focus();
expect(document.activeElement.type).toEqual('select-one');
document.body.removeChild(container);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('TextInput', () => {
expect(document.activeElement.type).toBeUndefined();
wrapper.instance().focus();
expect(document.activeElement.type).toEqual('text');
document.body.removeChild(container);
});

it('has the expected classes', () => {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/TextInput/TextInput-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('TextInput', () => {
expect(document.activeElement.type).toBeUndefined();
wrapper.instance().focus();
expect(document.activeElement.type).toEqual('text');
document.body.removeChild(container);
});

it('has the expected classes', () => {
Expand Down

0 comments on commit e1599d5

Please sign in to comment.