style(bird): format configuration tests

This commit is contained in:
Jeppe B
2026-07-29 18:56:15 +02:00
parent 099877ca74
commit cc04117d6b
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -36,7 +36,7 @@ vi.mock("@/components/page/wrappers/RestrictedPageWrapper.vue", () => ({
default: { template: "<div><slot /></div>" }, default: { template: "<div><slot /></div>" },
})); }));
vi.mock("@/views/dashboards/superUserDashboard/configuration/ConfigurationSubPageWrapper.vue", () => ({ vi.mock("@/views/dashboards/superUserDashboard/configuration/ConfigurationSubPageWrapper.vue", () => ({
default: { template: "<main><slot name=\"title\" /><slot name=\"content\" /></main>" }, default: { template: '<main><slot name="title" /><slot name="content" /></main>' },
})); }));
vi.mock("@/components/session/token/SessionUser.vue", () => ({ vi.mock("@/components/session/token/SessionUser.vue", () => ({
@@ -158,9 +158,7 @@ describe("Bird configuration", () => {
const wrapper = mount(ConfigurationBird, { global }); const wrapper = mount(ConfigurationBird, { global });
await flushPromises(); await flushPromises();
expect(wrapper.get('[data-testid="bird-config-unavailable"]').text()).toBe( expect(wrapper.get('[data-testid="bird-config-unavailable"]').text()).toBe("configuration.bird.config_unavailable");
"configuration.bird.config_unavailable"
);
expect(wrapper.get('[data-testid="bird-health-state"]').text()).toBe("configuration.bird.state.unavailable"); expect(wrapper.get('[data-testid="bird-health-state"]').text()).toBe("configuration.bird.state.unavailable");
}); });
+1 -1
View File
@@ -68,7 +68,7 @@ describe("Bird module contract", () => {
it("does not place a fixed-number call from the configuration page", () => { it("does not place a fixed-number call from the configuration page", () => {
expect(pageSource).toContain("getHealth"); expect(pageSource).toContain("getHealth");
expect(pageSource).not.toContain("getControlPlaneStatus"); expect(pageSource).not.toContain("getControlPlaneStatus");
expect(pageSource).toContain("getModuleConfigValue(\"workspaceId\") || getModuleConfigValue(\"workplaceId\")"); expect(pageSource).toContain('getModuleConfigValue("workspaceId") || getModuleConfigValue("workplaceId")');
expect(pageSource).toContain("config.keys.workspaceId.set"); expect(pageSource).toContain("config.keys.workspaceId.set");
expect(pageSource).toContain("BIRD_SECRET_VARIABLES.has(value.variable)"); expect(pageSource).toContain("BIRD_SECRET_VARIABLES.has(value.variable)");
expect(pageSource).toContain("isModuleSecretSet('api_key')"); expect(pageSource).toContain("isModuleSecretSet('api_key')");