Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Apr 1, 2023
1 parent a89ac92 commit 45bc08d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('TypeDocumentation', () => {
const title = container.querySelector(
'.graphiql-doc-explorer-section-title',
);
title?.removeChild(title?.childNodes[0]);
title?.childNodes[0].remove();
expect(title).toHaveTextContent('Possible Types');
});

Expand All @@ -96,7 +96,7 @@ describe('TypeDocumentation', () => {
const title = container.querySelector(
'.graphiql-doc-explorer-section-title',
);
title?.removeChild(title?.childNodes[0]);
title?.childNodes[0].remove();
expect(title).toHaveTextContent('Enum Values');
const enums = container.querySelectorAll(
'.graphiql-doc-explorer-enum-value',
Expand All @@ -115,7 +115,7 @@ describe('TypeDocumentation', () => {
const title = container.querySelector(
'.graphiql-doc-explorer-section-title',
);
title?.removeChild(title?.childNodes[0]);
title?.childNodes[0].remove();
expect(title).toHaveTextContent('Enum Values');

let enums = container.querySelectorAll('.graphiql-doc-explorer-enum-value');
Expand Down

0 comments on commit 45bc08d

Please sign in to comment.