Skip to content

Commit f44988e

Browse files
fix: 테스트 코드 수정 2
1 parent 5796be0 commit f44988e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/backend/src/edge/edge.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('EdgeService', () => {
125125
describe('findEdgesByWorkspace', () => {
126126
it('특정 워크스페이스에 존재하는 모든 엣지를 반환한다.', async () => {
127127
const workspaceId = '123456789012345678'; // Snowflake ID
128-
const workspace: Workspace = {
128+
const workspace = {
129129
id: 1,
130130
snowflakeId: workspaceId,
131131
owner: null,
@@ -138,7 +138,7 @@ describe('EdgeService', () => {
138138
edges: [],
139139
pages: [],
140140
nodes: [],
141-
};
141+
} as Workspace;
142142
const node3 = {
143143
id: 3,
144144
x: 0,

apps/backend/src/page/page.service.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('PageService', () => {
6161
describe('createPage', () => {
6262
it('페이지를 성공적으로 생성한다.', async () => {
6363
const newDate1 = new Date();
64-
const workspace1: Workspace = {
64+
const workspace1 = {
6565
id: 1,
6666
snowflakeId: 'snowflake-id-1',
6767
owner: null,
@@ -74,7 +74,7 @@ describe('PageService', () => {
7474
edges: [],
7575
pages: [],
7676
nodes: [],
77-
};
77+
} as Workspace;
7878

7979
// 페이지 dto
8080
const newPageDto: CreatePageDto = {
@@ -254,7 +254,7 @@ describe('PageService', () => {
254254
describe('findPagesByWorkspace', () => {
255255
it('특정 워크스페이스에 존재하는 페이지들을 content 없이 반환한다.', async () => {
256256
const workspaceId = '123456789012345678'; // Snowflake ID
257-
const workspace: Workspace = {
257+
const workspace = {
258258
id: 1,
259259
snowflakeId: workspaceId,
260260
owner: null,
@@ -267,7 +267,7 @@ describe('PageService', () => {
267267
edges: [],
268268
pages: [],
269269
nodes: [],
270-
};
270+
} as Workspace;
271271

272272
const page1: Page = {
273273
id: 1,

0 commit comments

Comments
 (0)