mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
feat(server): make permission a standalone module (#7880)
This commit is contained in:
@@ -12,9 +12,9 @@ import {
|
||||
FeatureService,
|
||||
FeatureType,
|
||||
} from '../src/core/features';
|
||||
import { Permission } from '../src/core/permission';
|
||||
import { UserType } from '../src/core/user/types';
|
||||
import { WorkspaceResolver } from '../src/core/workspaces/resolvers';
|
||||
import { Permission } from '../src/core/workspaces/types';
|
||||
import { Config, ConfigModule } from '../src/fundamentals/config';
|
||||
import { createTestingApp } from './utils';
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import test from 'ava';
|
||||
import * as Sinon from 'sinon';
|
||||
|
||||
import { DocHistoryManager } from '../src/core/doc';
|
||||
import { PermissionModule } from '../src/core/permission';
|
||||
import { QuotaModule } from '../src/core/quota';
|
||||
import { StorageModule } from '../src/core/storage';
|
||||
import type { EventPayload } from '../src/fundamentals/event';
|
||||
@@ -17,7 +18,7 @@ let db: PrismaClient;
|
||||
// cleanup database before each test
|
||||
test.beforeEach(async () => {
|
||||
m = await createTestingModule({
|
||||
imports: [StorageModule, QuotaModule],
|
||||
imports: [StorageModule, QuotaModule, PermissionModule],
|
||||
providers: [DocHistoryManager],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user