@@ -23,11 +23,8 @@ beforeAll(async () => {
23
23
const initResult = await testDb . init ( ) ;
24
24
testDbName = initResult . testDbName ;
25
25
26
- const [
27
- fetchedGlobalOwnerRole ,
28
- fetchedGlobalMemberRole ,
29
- fetchedWorkflowOwnerRole ,
30
- ] = await testDb . getAllRoles ( ) ;
26
+ const [ fetchedGlobalOwnerRole , fetchedGlobalMemberRole , fetchedWorkflowOwnerRole ] =
27
+ await testDb . getAllRoles ( ) ;
31
28
32
29
globalOwnerRole = fetchedGlobalOwnerRole ;
33
30
globalMemberRole = fetchedGlobalMemberRole ;
@@ -41,10 +38,7 @@ beforeAll(async () => {
41
38
} ) ;
42
39
43
40
beforeEach ( async ( ) => {
44
- await testDb . truncate (
45
- [ 'SharedCredentials' , 'SharedWorkflow' , 'User' , 'Workflow' , 'Credentials' , 'Tag' ] ,
46
- testDbName ,
47
- ) ;
41
+ await testDb . truncate ( [ 'SharedWorkflow' , 'User' , 'Workflow' ] , testDbName ) ;
48
42
49
43
config . set ( 'userManagement.disabled' , false ) ;
50
44
config . set ( 'userManagement.isInstanceOwnerSetUp' , true ) ;
@@ -384,7 +378,7 @@ test('GET /workflows/:id should fail due to invalid API Key', async () => {
384
378
expect ( response . statusCode ) . toBe ( 401 ) ;
385
379
} ) ;
386
380
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 ( ) => {
388
382
const owner = await testDb . createUser ( { globalRole : globalOwnerRole , apiKey : randomApiKey ( ) } ) ;
389
383
390
384
const authOwnerAgent = utils . createAgent ( app , {
@@ -495,7 +489,7 @@ test('DELETE /workflows/:id should fail due to invalid API Key', async () => {
495
489
expect ( response . statusCode ) . toBe ( 401 ) ;
496
490
} ) ;
497
491
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 ( ) => {
499
493
const owner = await testDb . createUser ( { globalRole : globalOwnerRole , apiKey : randomApiKey ( ) } ) ;
500
494
501
495
const authOwnerAgent = utils . createAgent ( app , {
@@ -619,7 +613,7 @@ test('POST /workflows/:id/activate should fail due to invalid API Key', async ()
619
613
expect ( response . statusCode ) . toBe ( 401 ) ;
620
614
} ) ;
621
615
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 ( ) => {
623
617
const owner = await testDb . createUser ( { globalRole : globalOwnerRole , apiKey : randomApiKey ( ) } ) ;
624
618
625
619
const authOwnerAgent = utils . createAgent ( app , {
@@ -781,7 +775,7 @@ test('POST /workflows/:id/deactivate should fail due to invalid API Key', async
781
775
expect ( response . statusCode ) . toBe ( 401 ) ;
782
776
} ) ;
783
777
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 ( ) => {
785
779
const owner = await testDb . createUser ( { globalRole : globalOwnerRole , apiKey : randomApiKey ( ) } ) ;
786
780
787
781
const authOwnerAgent = utils . createAgent ( app , {
@@ -1036,7 +1030,7 @@ test('PUT /workflows/:id should fail due to invalid API Key', async () => {
1036
1030
expect ( response . statusCode ) . toBe ( 401 ) ;
1037
1031
} ) ;
1038
1032
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 ( ) => {
1040
1034
const owner = await testDb . createUser ( { globalRole : globalOwnerRole , apiKey : randomApiKey ( ) } ) ;
1041
1035
1042
1036
const authOwnerAgent = utils . createAgent ( app , {
0 commit comments