mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(server): move bin content parser to doc reader (#10302)
This commit is contained in:
@@ -187,7 +187,7 @@ test('should generate request id for event', async t => {
|
||||
|
||||
await eventbus.emitAsync('__test__.requestId', {});
|
||||
|
||||
t.true(listeners.onRequestId.lastCall.returnValue.includes(':event/'));
|
||||
t.true(listeners.onRequestId.lastCall.returnValue.includes(':event:'));
|
||||
});
|
||||
|
||||
test('should continuously use the same request id', async t => {
|
||||
|
||||
@@ -10,7 +10,7 @@ import Sinon from 'sinon';
|
||||
import { AppModule } from '../app.module';
|
||||
import { EventBus } from '../base';
|
||||
import { AuthService } from '../core/auth';
|
||||
import { DocContentService } from '../core/doc-renderer';
|
||||
import { DocReader } from '../core/doc';
|
||||
import { DocRole, PermissionService, WorkspaceRole } from '../core/permission';
|
||||
import { WorkspaceType } from '../core/workspaces';
|
||||
import { Models } from '../models';
|
||||
@@ -53,7 +53,7 @@ test.before(async t => {
|
||||
module
|
||||
.overrideProvider(EventBus)
|
||||
.useValue(Sinon.createStubInstance(EventBus));
|
||||
module.overrideProvider(DocContentService).useValue({
|
||||
module.overrideProvider(DocReader).useValue({
|
||||
getWorkspaceContent() {
|
||||
return {
|
||||
name: 'test',
|
||||
|
||||
Reference in New Issue
Block a user