Skip to content

Commit d59fd6c

Browse files
committed
fix after rebase
1 parent e08bb18 commit d59fd6c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { OnlineStatusService } from 'xforge-common/online-status.service';
1818
import { TestRealtimeModule } from 'xforge-common/test-realtime.module';
1919
import { configureTestingModule, TestTranslocoModule } from 'xforge-common/test-utils';
2020
import { UserService } from 'xforge-common/user.service';
21+
import { DocSubscription } from '../../../../xforge-common/models/realtime-doc';
2122
import { ParatextProject } from '../../../core/models/paratext-project';
2223
import { SFProjectProfileDoc } from '../../../core/models/sf-project-profile-doc';
2324
import { SF_TYPE_REGISTRY } from '../../../core/models/sf-type-registry';
@@ -1458,6 +1459,6 @@ describe('DraftGenerationStepsComponent', () => {
14581459
})
14591460
} as SFProjectProfileDoc;
14601461

1461-
when(mockProjectService.getProfile(projectId)).thenResolve(profileDoc);
1462+
when(mockProjectService.getProfile(projectId, new DocSubscription('spec'))).thenResolve(profileDoc);
14621463
}
14631464
});

src/SIL.XForge.Scripture/ClientApp/src/app/translate/draft-generation/draft-generation-steps/draft-generation-steps.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { OnlineStatusService } from 'xforge-common/online-status.service';
2525
import { UICommonModule } from 'xforge-common/ui-common.module';
2626
import { UserService } from 'xforge-common/user.service';
2727
import { quietTakeUntilDestroyed } from 'xforge-common/util/rxjs-util';
28+
import { DocSubscription } from '../../../../xforge-common/models/realtime-doc';
2829
import { ParatextProject } from '../../../core/models/paratext-project';
2930
import { SFProjectProfileDoc } from '../../../core/models/sf-project-profile-doc';
3031
import { TrainingDataDoc } from '../../../core/models/training-data-doc';
@@ -190,7 +191,8 @@ export class DraftGenerationStepsComponent implements OnInit {
190191
// TODO: When implementing multiple drafting sources, this will need to be updated to handle multiple sources
191192
const draftingSourceBooks = new Set<number>();
192193
const draftingSourceProfileDoc: SFProjectProfileDoc = await this.projectService.getProfile(
193-
draftingSource.projectRef
194+
draftingSource.projectRef,
195+
new DocSubscription('DraftGenerationStepsComponent', this.destroyRef)
194196
);
195197
for (const text of draftingSource.texts) {
196198
draftingSourceBooks.add(text.bookNum);

src/SIL.XForge.Scripture/ClientApp/src/app/translate/editor/lynx/insights/lynx-workspace.service.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,11 +583,11 @@ describe('LynxWorkspaceService', () => {
583583
verify(mockDocumentManager.fireClosed(anything())).once();
584584
}));
585585

586-
it('should handle book chapters with undefined chapter number', fakeAsync(() => {
586+
it('should handle book chapters with undefined chapter number', fakeAsync(async () => {
587587
const env = new TestEnvironment();
588588

589589
// Create project with lynx features enabled
590-
const projectDoc = env.createMockProjectDoc(PROJECT_ID, {
590+
const projectDoc = await env.createMockProjectDoc(PROJECT_ID, {
591591
autoCorrectionsEnabled: true,
592592
assessmentsEnabled: true,
593593
punctuationCheckerEnabled: true,

0 commit comments

Comments
 (0)