update dependancy components & config tests - Issue #1776
This commit is contained in:
8701
package-lock.json
generated
8701
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -127,6 +127,7 @@ describe("ParticipationWithoutAccount", () => {
|
|||||||
uuid: eventData.uuid,
|
uuid: eventData.uuid,
|
||||||
});
|
});
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
expect(wrapper.vm.error).toBe(false);
|
||||||
|
|
||||||
expect(wrapper.find(".container").isVisible()).toBeTruthy();
|
expect(wrapper.find(".container").isVisible()).toBeTruthy();
|
||||||
expect(wrapper.find(".o-notification--info").text()).toBe(
|
expect(wrapper.find(".o-notification--info").text()).toBe(
|
||||||
@@ -138,11 +139,11 @@ describe("ParticipationWithoutAccount", () => {
|
|||||||
wrapper.find("form").trigger("submit");
|
wrapper.find("form").trigger("submit");
|
||||||
|
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
expect(wrapper.vm.error).toBe(false);
|
|
||||||
|
|
||||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
||||||
expect.objectContaining(joinEventMock)
|
expect.objectContaining(joinEventMock)
|
||||||
);
|
);
|
||||||
|
expect(wrapper.vm.error).toBe(false);
|
||||||
|
|
||||||
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
|
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
|
||||||
query: FETCH_EVENT_BASIC,
|
query: FETCH_EVENT_BASIC,
|
||||||
@@ -197,6 +198,7 @@ describe("ParticipationWithoutAccount", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
|
expect(wrapper.vm.error).toBe(false);
|
||||||
|
|
||||||
// expect(wrapper.vm.$data.event.joinOptions).toBe(
|
// expect(wrapper.vm.$data.event.joinOptions).toBe(
|
||||||
// EventJoinOptions.RESTRICTED
|
// EventJoinOptions.RESTRICTED
|
||||||
@@ -216,11 +218,11 @@ describe("ParticipationWithoutAccount", () => {
|
|||||||
wrapper.find("form").trigger("submit");
|
wrapper.find("form").trigger("submit");
|
||||||
|
|
||||||
await flushPromises();
|
await flushPromises();
|
||||||
expect(wrapper.vm.error).toBe(false);
|
|
||||||
|
|
||||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
||||||
expect.objectContaining(joinEventMock)
|
expect.objectContaining(joinEventMock)
|
||||||
);
|
);
|
||||||
|
expect(wrapper.vm.error).toBe(false);
|
||||||
|
|
||||||
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
|
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
|
||||||
query: FETCH_EVENT_BASIC,
|
query: FETCH_EVENT_BASIC,
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ export default defineConfig(({ command }) => {
|
|||||||
reporter: ["junit", "default"],
|
reporter: ["junit", "default"],
|
||||||
outputFile: path.resolve(__dirname, "./junit.xml"),
|
outputFile: path.resolve(__dirname, "./junit.xml"),
|
||||||
coverage: {
|
coverage: {
|
||||||
|
reportOnFailure: true,
|
||||||
reporter: ["text", "json", "html"],
|
reporter: ["text", "json", "html"],
|
||||||
reportsDirectory: path.resolve(__dirname, "./coverage"),
|
reportsDirectory: path.resolve(__dirname, "./coverage"),
|
||||||
include: ["src/**/*.{vue,js,ts}"],
|
include: ["src/**/*.{vue,js,ts}"],
|
||||||
|
|||||||
Reference in New Issue
Block a user