e2e models

This commit is contained in:
Jacob Overgaard
2023-02-09 17:06:16 +01:00
parent 034dcf915f
commit 21bfba6513
2 changed files with 6 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
import { rest } from 'msw';
import { umbracoPath } from '@umbraco-cms/utils';
import { ProblemDetailsModel, RuntimeLevel, ServerStatus } from '@umbraco-cms/backend-api';
import { ProblemDetailsModel, RuntimeLevelModel, ServerStatusModel } from '@umbraco-cms/backend-api';
import { expect, test } from './test';
test.describe('installer tests', () => {
@@ -12,8 +12,8 @@ test.describe('installer tests', () => {
return res(
// Respond with a 200 status code
ctx.status(200),
ctx.json<ServerStatus>({
serverStatus: RuntimeLevel.INSTALL,
ctx.json<ServerStatusModel>({
serverStatus: RuntimeLevelModel.INSTALL,
})
);
})

View File

@@ -1,6 +1,6 @@
import { rest } from 'msw';
import { umbracoPath } from '@umbraco-cms/utils';
import { ProblemDetailsModel, RuntimeLevel, ServerStatus } from '@umbraco-cms/backend-api';
import { ProblemDetailsModel, RuntimeLevelModel, ServerStatusModel } from '@umbraco-cms/backend-api';
import { expect, test } from './test';
test.describe('upgrader tests', () => {
@@ -11,8 +11,8 @@ test.describe('upgrader tests', () => {
return res(
// Respond with a 200 status code
ctx.status(200),
ctx.json<ServerStatus>({
serverStatus: RuntimeLevel.UPGRADE,
ctx.json<ServerStatusModel>({
serverStatus: RuntimeLevelModel.UPGRADE,
})
);
})