Skip to content

Commit 66bdf79

Browse files
committed
tests updated
1 parent f070308 commit 66bdf79

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/builds/builds.service.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ describe('BuildsService', () => {
8484
viewport: '1800x1600',
8585
baselineName: null,
8686
ignoreAreas: '[]',
87+
comment: 'some comment',
8788
},
8889
],
8990
};

src/builds/dto/build.dto.spec.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ describe('BuildDto', () => {
5353
});
5454

5555
it('passed', () => {
56-
const build = {
56+
const build: Build & {
57+
testRuns: TestRun[];
58+
} = {
5759
id: 'a9385fc1-884d-4f9f-915e-40da0e7773d5',
5860
number: null,
5961
branchName: 'develop',
@@ -82,6 +84,7 @@ describe('BuildDto', () => {
8284
viewport: '1800x1600',
8385
baselineName: null,
8486
ignoreAreas: '[]',
87+
comment: 'some comment1',
8588
},
8689
{
8790
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -102,6 +105,7 @@ describe('BuildDto', () => {
102105
viewport: '1800x1600',
103106
baselineName: null,
104107
ignoreAreas: '[]',
108+
comment: 'some comment2',
105109
},
106110
],
107111
};
@@ -154,6 +158,7 @@ describe('BuildDto', () => {
154158
viewport: '1800x1600',
155159
baselineName: null,
156160
ignoreAreas: '[]',
161+
comment: 'some comment',
157162
},
158163
{
159164
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -174,6 +179,7 @@ describe('BuildDto', () => {
174179
viewport: '1800x1600',
175180
baselineName: null,
176181
ignoreAreas: '[]',
182+
comment: 'some comment1',
177183
},
178184
{
179185
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -194,6 +200,7 @@ describe('BuildDto', () => {
194200
viewport: '1800x1600',
195201
baselineName: null,
196202
ignoreAreas: '[]',
203+
comment: 'some comment2',
197204
},
198205
],
199206
};
@@ -246,6 +253,7 @@ describe('BuildDto', () => {
246253
viewport: '1800x1600',
247254
baselineName: null,
248255
ignoreAreas: '[]',
256+
comment: 'some comment1',
249257
},
250258
{
251259
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -266,6 +274,7 @@ describe('BuildDto', () => {
266274
viewport: '1800x1600',
267275
baselineName: null,
268276
ignoreAreas: '[]',
277+
comment: 'some comment2',
269278
},
270279
{
271280
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -286,6 +295,7 @@ describe('BuildDto', () => {
286295
viewport: '1800x1600',
287296
baselineName: null,
288297
ignoreAreas: '[]',
298+
comment: null,
289299
},
290300
{
291301
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -306,6 +316,7 @@ describe('BuildDto', () => {
306316
viewport: '1800x1600',
307317
baselineName: null,
308318
ignoreAreas: '[]',
319+
comment: 'some comment',
309320
},
310321
{
311322
id: '10fb5e02-64e0-4cf5-9f17-c00ab3c96658',
@@ -326,6 +337,7 @@ describe('BuildDto', () => {
326337
viewport: '1800x1600',
327338
baselineName: null,
328339
ignoreAreas: '[]',
340+
comment: 'some comment',
329341
},
330342
],
331343
};

0 commit comments

Comments
 (0)