Skip to content

Commit

Permalink
Check siblings
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaretnikov committed Feb 22, 2024
1 parent 7ef88c2 commit 9b4fcc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/environmentCreate/SpecificationCreate.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ describe("<SpecificationCreate />", () => {

var channels = component.getByText("channels", { exact: true }).closest("div");

Check failure on line 48 in test/environmentCreate/SpecificationCreate.test.tsx

View workflow job for this annotation

GitHub Actions / Build Package

Unexpected var, use let or const instead

Check failure on line 48 in test/environmentCreate/SpecificationCreate.test.tsx

View workflow job for this annotation

GitHub Actions / Build Package

Replace `.getByText("channels",·{·exact:·true·})` with `⏎······.getByText("channels",·{·exact:·true·})⏎······`
expect(channels?.textContent).toBe("channels:");
expect(channels?.nextElementSibling?.textContent).toBe(" -");

var dependencies = component.getByText("dependencies", { exact: true }).closest("div");

Check failure on line 52 in test/environmentCreate/SpecificationCreate.test.tsx

View workflow job for this annotation

GitHub Actions / Build Package

Unexpected var, use let or const instead

Check failure on line 52 in test/environmentCreate/SpecificationCreate.test.tsx

View workflow job for this annotation

GitHub Actions / Build Package

Replace `.getByText("dependencies",·{·exact:·true·})` with `⏎······.getByText("dependencies",·{·exact:·true·})⏎······`
expect(dependencies?.textContent).toBe("dependencies:");
expect(dependencies?.nextElementSibling?.textContent).toBe(" -");

var variables = component.getByText("variables", { exact: true }).closest("div");

Check failure on line 56 in test/environmentCreate/SpecificationCreate.test.tsx

View workflow job for this annotation

GitHub Actions / Build Package

Unexpected var, use let or const instead

Check failure on line 56 in test/environmentCreate/SpecificationCreate.test.tsx

View workflow job for this annotation

GitHub Actions / Build Package

Replace `.getByText("variables",·{·exact:·true·})` with `⏎······.getByText("variables",·{·exact:·true·})⏎······`
expect(variables?.textContent).toBe("variables: {}");
Expand Down Expand Up @@ -81,9 +83,11 @@ describe("<SpecificationCreate />", () => {

var channels = component.getByText("channels", { exact: true }).closest("div");
expect(channels?.textContent).toBe("channels:");
expect(channels?.nextElementSibling?.textContent).toBe(" -");

var dependencies = component.getByText("dependencies", { exact: true }).closest("div");
expect(dependencies?.textContent).toBe("dependencies:");
expect(dependencies?.nextElementSibling?.textContent).toBe(" -");

var variables = component.getByText("variables", { exact: true }).closest("div");
expect(variables?.textContent).toBe("variables: {}");
Expand All @@ -102,9 +106,11 @@ describe("<SpecificationCreate />", () => {

var channels = component.getByText("channels", { exact: true }).closest("div");
expect(channels?.textContent).toBe("channels:");
expect(channels?.nextElementSibling?.textContent).toBe(" -");

var dependencies = component.getByText("dependencies", { exact: true }).closest("div");
expect(dependencies?.textContent).toBe("dependencies:");
expect(dependencies?.nextElementSibling?.textContent).toBe(" -");

var variables = component.getByText("variables", { exact: true }).closest("div");
expect(variables?.textContent).toBe("variables: {}");
Expand Down

0 comments on commit 9b4fcc5

Please sign in to comment.