style(bird): format configuration tests
This commit is contained in:
@@ -36,7 +36,7 @@ vi.mock("@/components/page/wrappers/RestrictedPageWrapper.vue", () => ({
|
||||
default: { template: "<div><slot /></div>" },
|
||||
}));
|
||||
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", () => ({
|
||||
@@ -158,9 +158,7 @@ describe("Bird configuration", () => {
|
||||
const wrapper = mount(ConfigurationBird, { global });
|
||||
await flushPromises();
|
||||
|
||||
expect(wrapper.get('[data-testid="bird-config-unavailable"]').text()).toBe(
|
||||
"configuration.bird.config_unavailable"
|
||||
);
|
||||
expect(wrapper.get('[data-testid="bird-config-unavailable"]').text()).toBe("configuration.bird.config_unavailable");
|
||||
expect(wrapper.get('[data-testid="bird-health-state"]').text()).toBe("configuration.bird.state.unavailable");
|
||||
});
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ describe("Bird module contract", () => {
|
||||
it("does not place a fixed-number call from the configuration page", () => {
|
||||
expect(pageSource).toContain("getHealth");
|
||||
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("BIRD_SECRET_VARIABLES.has(value.variable)");
|
||||
expect(pageSource).toContain("isModuleSecretSet('api_key')");
|
||||
|
||||
Reference in New Issue
Block a user