Skip to content
Snippets Groups Projects
Commit 189231e8 authored by Petar Hristov's avatar Petar Hristov :speech_balloon:
Browse files

Linter

parent 95cd33e6
No related tags found
1 merge request!356Fix: Resource mapping with missing type options
Pipeline #1317716 passed
......@@ -21,22 +21,17 @@ import { routes } from "@/router";
import Vue from "vue";
import { getTestShibbolethUserState } from "@/data/mockup/testUser";
import {
getTestResourceState,
testResourceType,
} from "@/data/mockup/testResource";
import { getTestResourceState } from "@/data/mockup/testResource";
import { testProjectState } from "@/data/mockup/testProject";
import { useProjectStore } from "../store";
import useResourceStore from "@/modules/resource/store";
import {
ProjectQuotaDto,
ResourceQuotaDto,
} from "@coscine/api-client/dist/types/Coscine.Api";
import { ExtendedResourceTypeInformationDto, QuotaUnit } from "@/modules/resource/types";
function sleep(ms: number) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
import {
ExtendedResourceTypeInformationDto,
QuotaUnit,
} from "@/modules/resource/types";
// Define the Vue instance type (computed properties)
interface QuotaPageComponent extends Vue {
......@@ -97,9 +92,9 @@ describe("Quota.vue", async () => {
isQuotaAdjustable: true,
isQuotaAvailable: true,
isEnabled: true,
}
] as ExtendedResourceTypeInformationDto[] | null
}
},
] as ExtendedResourceTypeInformationDto[] | null;
},
},
}) as Wrapper<QuotaPageComponent>;
});
......@@ -113,7 +108,7 @@ describe("Quota.vue", async () => {
expect(options.length).toBeGreaterThan(1);
expect(options.at(1).text()).toContain("Resource Type 1");
expect(options.at(2).text()).toContain("Resource Type 2");
})
});
test("Should adjust the project resource type quota", async () => {
await wrapper.setData({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment