Skip to content

Commit 162662b

Browse files
Fix name
1 parent e71bba5 commit 162662b

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

e2e/api/base.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BaseAPI {
1111
this.token = token;
1212
}
1313

14-
public async assertNegativeresponse(promise: Promise<object>, expectedError: string): Promise<void> {
14+
public async assertNegativeResponse(promise: Promise<object>, expectedError: string): Promise<void> {
1515
let atError: ATError;
1616
try {
1717
await promise;

e2e/specs/api/public.api.spec.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ describe('Public API', () => {
3838

3939
describe('Suite:', () => {
4040
it('Can not create Suite via public API without name and id', async () => {
41-
return api.assertNegativeresponse(api.createOrUpdateSuite({
41+
return api.assertNegativeResponse(api.createOrUpdateSuite({
4242
project_id: projectHelper.project.id
4343
}), apiResponseErrors.missedIdOrName);
4444
});
4545

4646
it('Can not create Suite via public API without project_id', async () => {
47-
return api.assertNegativeresponse(api.createOrUpdateSuite({
47+
return api.assertNegativeResponse(api.createOrUpdateSuite({
4848
name: suiteName
4949
}), apiResponseErrors.missedProjectId);
5050
});
5151

5252
it('Can not create Suite via public API for unaccessible project', async () => {
53-
return api.assertNegativeresponse(api.createOrUpdateSuite({
53+
return api.assertNegativeResponse(api.createOrUpdateSuite({
5454
name: suiteName,
5555
project_id: unaccessibleId
5656
}), apiResponseErrors.anonymousNotAllowedToViewTestSuites);
@@ -68,7 +68,7 @@ describe('Public API', () => {
6868
});
6969

7070
it('Can not update Suite via public API with unaccessible id', async () => {
71-
return api.assertNegativeresponse(api.createOrUpdateSuite({
71+
return api.assertNegativeResponse(api.createOrUpdateSuite({
7272
id: unaccessibleId,
7373
name: editedSuiteName,
7474
project_id: projectHelper.project.id
@@ -103,28 +103,28 @@ describe('Public API', () => {
103103

104104
describe('Test:', () => {
105105
it('Can not create Test via public API without name and id', async () => {
106-
return api.assertNegativeresponse(api.createOrUpdateTest({
106+
return api.assertNegativeResponse(api.createOrUpdateTest({
107107
suites: [{ id: suite.id }],
108108
project_id: projectHelper.project.id
109109
}), apiResponseErrors.missedIdOrName);
110110
});
111111

112112
it('Can not create Test via public API without project_id', async () => {
113-
return api.assertNegativeresponse(api.createOrUpdateTest({
113+
return api.assertNegativeResponse(api.createOrUpdateTest({
114114
name: testName,
115115
suites: [{ id: suite.id }]
116116
}), apiResponseErrors.missedProjectId);
117117
});
118118

119119
it('Can not create Test via public API without suites', async () => {
120-
return api.assertNegativeresponse(api.createOrUpdateTest({
120+
return api.assertNegativeResponse(api.createOrUpdateTest({
121121
name: testName,
122122
project_id: projectHelper.project.id
123123
}), apiResponseErrors.missedSuites);
124124
});
125125

126126
it('Can not create Test via public API for unaccessible project', async () => {
127-
return api.assertNegativeresponse(api.createOrUpdateTest({
127+
return api.assertNegativeResponse(api.createOrUpdateTest({
128128
name: testName,
129129
suites: [{ id: suite.id }],
130130
project_id: unaccessibleId
@@ -176,28 +176,28 @@ describe('Public API', () => {
176176

177177
describe('Test Run:', () => {
178178
it('Can not create Test Run via public API without build_name', async () => {
179-
return api.assertNegativeresponse(api.startTestrun({
179+
return api.assertNegativeResponse(api.startTestrun({
180180
test_suite_id: suite.id,
181181
project_id: projectHelper.project.id
182182
}), apiResponseErrors.missedBuildName);
183183
});
184184

185185
it('Can not create Test Run via public API without test_suite_id', async () => {
186-
return api.assertNegativeresponse(api.startTestrun({
186+
return api.assertNegativeResponse(api.startTestrun({
187187
build_name: buildName,
188188
project_id: projectHelper.project.id
189189
}), apiResponseErrors.missedSuiteId);
190190
});
191191

192192
it('Can not create Test Run via public API without project_id', async () => {
193-
return api.assertNegativeresponse(api.startTestrun({
193+
return api.assertNegativeResponse(api.startTestrun({
194194
build_name: buildName,
195195
test_suite_id: suite.id
196196
}), apiResponseErrors.missedProjectId);
197197
});
198198

199199
it('Can not create Test Run via public API for unaccessible project', async () => {
200-
return api.assertNegativeresponse(api.startTestrun({
200+
return api.assertNegativeResponse(api.startTestrun({
201201
build_name: buildName,
202202
test_suite_id: suite.id,
203203
project_id: unaccessibleId
@@ -221,22 +221,22 @@ describe('Public API', () => {
221221

222222
describe('Test Result:', () => {
223223
it('Can not start Test Result via public API without test_id', async () => {
224-
return api.assertNegativeresponse(api.testResultStart(undefined, testrun.id, projectHelper.project.id),
224+
return api.assertNegativeResponse(api.testResultStart(undefined, testrun.id, projectHelper.project.id),
225225
apiResponseErrors.missedTestId);
226226
});
227227

228228
it('Can not start Test Result via public API without test_run_id', async () => {
229-
return api.assertNegativeresponse(api.testResultStart(test.id, undefined, projectHelper.project.id),
229+
return api.assertNegativeResponse(api.testResultStart(test.id, undefined, projectHelper.project.id),
230230
apiResponseErrors.missedTestRunId);
231231
});
232232

233233
it('Can not start Test Result via public API without project_id', async () => {
234-
return api.assertNegativeresponse(api.testResultStart(test.id, testrun.id, undefined),
234+
return api.assertNegativeResponse(api.testResultStart(test.id, testrun.id, undefined),
235235
apiResponseErrors.missedProjectId);
236236
});
237237

238238
it('Can not start Test Result via public API for unaccessible project', async () => {
239-
return api.assertNegativeresponse(api.testResultStart(test.id, testrun.id, unaccessibleId),
239+
return api.assertNegativeResponse(api.testResultStart(test.id, testrun.id, unaccessibleId),
240240
apiResponseErrors.anonymousNotAllowedToViewTestResults);
241241
});
242242

@@ -251,26 +251,26 @@ describe('Public API', () => {
251251
});
252252

253253
it('Can not finish Test Result via public API without id', async () => {
254-
return api.assertNegativeresponse(api.testResultFinish({
254+
return api.assertNegativeResponse(api.testResultFinish({
255255
project_id: projectHelper.project.id
256256
}), apiResponseErrors.missedId);
257257
});
258258

259259
it('Can not finish Test Result via public API without project_id', async () => {
260-
return api.assertNegativeresponse(api.testResultFinish({
260+
return api.assertNegativeResponse(api.testResultFinish({
261261
id: testResult.id
262262
}), apiResponseErrors.missedProjectId);
263263
});
264264

265265
it('Can not finish Test Result via public API without final_result_id', async () => {
266-
return api.assertNegativeresponse(api.testResultFinish({
266+
return api.assertNegativeResponse(api.testResultFinish({
267267
id: testResult.id,
268268
project_id: projectHelper.project.id
269269
}), apiResponseErrors.missedFinalResultId);
270270
});
271271

272272
it('Can not finish Test Result via public API for unaccessible project', async () => {
273-
return api.assertNegativeresponse(api.testResultFinish({
273+
return api.assertNegativeResponse(api.testResultFinish({
274274
id: testResult.id,
275275
final_result_id: 2,
276276
project_id: unaccessibleId
@@ -293,17 +293,17 @@ describe('Public API', () => {
293293
});
294294

295295
it('Can not finish Test Run via public API without id', async () => {
296-
return api.assertNegativeresponse(api.finishTestRun(projectHelper.project.id, undefined),
296+
return api.assertNegativeResponse(api.finishTestRun(projectHelper.project.id, undefined),
297297
apiResponseErrors.missedId);
298298
});
299299

300300
it('Can not finish Test Run via public API without project_id', async () => {
301-
return api.assertNegativeresponse(api.finishTestRun(undefined, testrun.id),
301+
return api.assertNegativeResponse(api.finishTestRun(undefined, testrun.id),
302302
apiResponseErrors.missedProjectId);
303303
});
304304

305305
it('Can not finish Test Run via public API for unaccessible project', async () => {
306-
return api.assertNegativeresponse(api.finishTestRun(unaccessibleId, testrun.id),
306+
return api.assertNegativeResponse(api.finishTestRun(unaccessibleId, testrun.id),
307307
apiResponseErrors.anonymousNotAllowedToCreateTestRun);
308308
});
309309

0 commit comments

Comments
 (0)