Skip to content

Commit 7176b6d

Browse files
committed
chore: fix tests
1 parent f2653b9 commit 7176b6d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

api/src/unraid-api/graph/resolvers/docker/docker.service.spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ describe('DockerService', () => {
142142
image: 'test-image',
143143
imageId: 'test-image-id',
144144
ports: [],
145+
sizeRootFs: undefined,
145146
state: ContainerState.EXITED,
146147
status: 'Exited',
147148
labels: {},
@@ -150,6 +151,7 @@ describe('DockerService', () => {
150151
},
151152
networkSettings: {},
152153
mounts: [],
154+
names: ['/test-container'],
153155
},
154156
]);
155157

@@ -193,6 +195,7 @@ describe('DockerService', () => {
193195
image: 'test-image',
194196
imageId: 'test-image-id',
195197
ports: [],
198+
sizeRootFs: undefined,
196199
state: ContainerState.RUNNING,
197200
status: 'Up 2 hours',
198201
labels: {},
@@ -201,6 +204,7 @@ describe('DockerService', () => {
201204
},
202205
networkSettings: {},
203206
mounts: [],
207+
names: ['/test-container'],
204208
});
205209

206210
expect(mockContainer.start).toHaveBeenCalled();
@@ -244,6 +248,7 @@ describe('DockerService', () => {
244248
image: 'test-image',
245249
imageId: 'test-image-id',
246250
ports: [],
251+
sizeRootFs: undefined,
247252
state: ContainerState.EXITED,
248253
status: 'Exited',
249254
labels: {},
@@ -252,6 +257,7 @@ describe('DockerService', () => {
252257
},
253258
networkSettings: {},
254259
mounts: [],
260+
names: ['/test-container'],
255261
});
256262

257263
expect(mockContainer.stop).toHaveBeenCalledWith({ t: 10 });
@@ -394,6 +400,8 @@ describe('DockerService', () => {
394400
image: 'test-image',
395401
imageId: 'test-image-id',
396402
ports: [],
403+
sizeRootFs: undefined,
404+
names: ['/test-container'],
397405
state: ContainerState.RUNNING,
398406
status: 'Up 2 hours',
399407
labels: {},
@@ -411,6 +419,8 @@ describe('DockerService', () => {
411419
image: 'test-image2',
412420
imageId: 'test-image-id2',
413421
ports: [],
422+
sizeRootFs: undefined,
423+
names: ['/test-container2'],
414424
state: ContainerState.EXITED,
415425
status: 'Exited',
416426
labels: {},
@@ -439,6 +449,8 @@ describe('DockerService', () => {
439449
image: 'test-image',
440450
imageId: 'test-image-id',
441451
ports: [],
452+
sizeRootFs: undefined,
453+
names: ['/test-container'],
442454
state: ContainerState.RUNNING,
443455
status: 'Up 2 hours',
444456
labels: {},
@@ -456,6 +468,8 @@ describe('DockerService', () => {
456468
image: 'test-image2',
457469
imageId: 'test-image-id2',
458470
ports: [],
471+
sizeRootFs: undefined,
472+
names: ['/test-container2'],
459473
state: ContainerState.EXITED,
460474
status: 'Exited',
461475
labels: {},

0 commit comments

Comments
 (0)