mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Use IWorkflowBase over WorkflowEntity in most places (#13225)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Container } from '@n8n/di';
|
||||
import { mock } from 'jest-mock-extended';
|
||||
import type { IWorkflowBase } from 'n8n-workflow';
|
||||
|
||||
import type {
|
||||
WorkflowClosedMessage,
|
||||
@@ -7,7 +8,6 @@ import type {
|
||||
} from '@/collaboration/collaboration.message';
|
||||
import { CollaborationService } from '@/collaboration/collaboration.service';
|
||||
import type { User } from '@/databases/entities/user';
|
||||
import type { WorkflowEntity } from '@/databases/entities/workflow-entity';
|
||||
import { Push } from '@/push';
|
||||
import { CacheService } from '@/services/cache/cache.service';
|
||||
import { mockInstance } from '@test/mocking';
|
||||
@@ -22,7 +22,7 @@ describe('CollaborationService', () => {
|
||||
let owner: User;
|
||||
let memberWithoutAccess: User;
|
||||
let memberWithAccess: User;
|
||||
let workflow: WorkflowEntity;
|
||||
let workflow: IWorkflowBase;
|
||||
let cacheService: CacheService;
|
||||
|
||||
beforeAll(async () => {
|
||||
|
||||
Reference in New Issue
Block a user