Skip to content

Commit 70a1aa5

Browse files
committed
🎨 Formatting fixes
1 parent f8eb5aa commit 70a1aa5

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

packages/cli/test/integration/publicApi/workflows.test.ts

+8-14
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ beforeAll(async () => {
2323
const initResult = await testDb.init();
2424
testDbName = initResult.testDbName;
2525

26-
const [
27-
fetchedGlobalOwnerRole,
28-
fetchedGlobalMemberRole,
29-
fetchedWorkflowOwnerRole,
30-
] = await testDb.getAllRoles();
26+
const [fetchedGlobalOwnerRole, fetchedGlobalMemberRole, fetchedWorkflowOwnerRole] =
27+
await testDb.getAllRoles();
3128

3229
globalOwnerRole = fetchedGlobalOwnerRole;
3330
globalMemberRole = fetchedGlobalMemberRole;
@@ -41,10 +38,7 @@ beforeAll(async () => {
4138
});
4239

4340
beforeEach(async () => {
44-
await testDb.truncate(
45-
['SharedCredentials', 'SharedWorkflow', 'User', 'Workflow', 'Credentials', 'Tag'],
46-
testDbName,
47-
);
41+
await testDb.truncate(['SharedWorkflow', 'User', 'Workflow'], testDbName);
4842

4943
config.set('userManagement.disabled', false);
5044
config.set('userManagement.isInstanceOwnerSetUp', true);
@@ -384,7 +378,7 @@ test('GET /workflows/:id should fail due to invalid API Key', async () => {
384378
expect(response.statusCode).toBe(401);
385379
});
386380

387-
test('GET /workflows/:id should fail due to non existing workflow', async () => {
381+
test('GET /workflows/:id should fail due to non-existing workflow', async () => {
388382
const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: randomApiKey() });
389383

390384
const authOwnerAgent = utils.createAgent(app, {
@@ -495,7 +489,7 @@ test('DELETE /workflows/:id should fail due to invalid API Key', async () => {
495489
expect(response.statusCode).toBe(401);
496490
});
497491

498-
test('DELETE /workflows/:id should fail due to non existing workflow', async () => {
492+
test('DELETE /workflows/:id should fail due to non-existing workflow', async () => {
499493
const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: randomApiKey() });
500494

501495
const authOwnerAgent = utils.createAgent(app, {
@@ -619,7 +613,7 @@ test('POST /workflows/:id/activate should fail due to invalid API Key', async ()
619613
expect(response.statusCode).toBe(401);
620614
});
621615

622-
test('POST /workflows/:id/activate should fail due to non existing workflow', async () => {
616+
test('POST /workflows/:id/activate should fail due to non-existing workflow', async () => {
623617
const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: randomApiKey() });
624618

625619
const authOwnerAgent = utils.createAgent(app, {
@@ -781,7 +775,7 @@ test('POST /workflows/:id/deactivate should fail due to invalid API Key', async
781775
expect(response.statusCode).toBe(401);
782776
});
783777

784-
test('POST /workflows/:id/deactivate should fail due to non existing workflow', async () => {
778+
test('POST /workflows/:id/deactivate should fail due to non-existing workflow', async () => {
785779
const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: randomApiKey() });
786780

787781
const authOwnerAgent = utils.createAgent(app, {
@@ -1036,7 +1030,7 @@ test('PUT /workflows/:id should fail due to invalid API Key', async () => {
10361030
expect(response.statusCode).toBe(401);
10371031
});
10381032

1039-
test('PUT /workflows/:id should fail due to non existing workflow', async () => {
1033+
test('PUT /workflows/:id should fail due to non-existing workflow', async () => {
10401034
const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: randomApiKey() });
10411035

10421036
const authOwnerAgent = utils.createAgent(app, {

0 commit comments

Comments
 (0)