mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Fix tests being wrong
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
662aa0a491
commit
eaa39274ab
@ -73,13 +73,13 @@ describe("<PodDisruptionBudgets />", () => {
|
||||
});
|
||||
|
||||
it("should display minAvailable as 0", () => {
|
||||
const result = renderFor(di)(<PodDisruptionBudgets object={pdb}/>);
|
||||
const result = renderFor(di)(<PodDisruptionBudgets />);
|
||||
|
||||
expect(result.container.querySelector(".TableRow .min-available")?.textContent).toEqual("0");
|
||||
});
|
||||
|
||||
it("should display maxUnavailable as N/A", () => {
|
||||
const result = renderFor(di)(<PodDisruptionBudgets object={pdb}/>);
|
||||
const result = renderFor(di)(<PodDisruptionBudgets />);
|
||||
|
||||
expect(result.container.querySelector(".TableRow .max-unavailable")?.textContent).toEqual("N/A");
|
||||
});
|
||||
@ -98,13 +98,13 @@ describe("<PodDisruptionBudgets />", () => {
|
||||
});
|
||||
|
||||
it("should display minAvailable as N/A", () => {
|
||||
const result = renderFor(di)(<PodDisruptionBudgets object={pdb}/>);
|
||||
const result = renderFor(di)(<PodDisruptionBudgets />);
|
||||
|
||||
expect(result.container.querySelector(".TableRow .min-available")?.textContent).toEqual("N/A");
|
||||
});
|
||||
|
||||
it("should display maxUnavailable as 0", () => {
|
||||
const result = renderFor(di)(<PodDisruptionBudgets object={pdb}/>);
|
||||
const result = renderFor(di)(<PodDisruptionBudgets />);
|
||||
|
||||
expect(result.container.querySelector(".TableRow .max-unavailable")?.textContent).toEqual("0");
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user