fix(tests): update tests

This commit is contained in:
Łukasz Mierzwa
2022-11-07 15:26:50 +00:00
committed by Łukasz Mierzwa
parent 12dc90356c
commit 33100f01f8
2 changed files with 3 additions and 3 deletions

View File

@@ -126,7 +126,7 @@ describe("<AlertAck />", () => {
},
});
const tree = MountedAlertAck();
expect(tree.html()).toBe("");
expect(tree.html()).toBeNull();
});
it("uses faCheck icon when idle", () => {

View File

@@ -60,12 +60,12 @@ describe("<AppToasts />", () => {
it("doesn't render anything when alertStore.info.upgradeNeeded=true", () => {
alertStore.info.setUpgradeNeeded(true);
const tree = mount(<AppToasts alertStore={alertStore} />);
expect(tree.html()).toBe("");
expect(tree.html()).toBeNull();
});
it("doesn't render anything when there are no notifications to show", () => {
const tree = mount(<AppToasts alertStore={alertStore} />);
expect(tree.html()).toBe("");
expect(tree.html()).toBeNull();
});
it("renders upstream error toasts for each unhealthy upstream", () => {