Remove window.Signal.Migrations

This commit is contained in:
Fedor Indutny
2025-10-10 13:37:38 -07:00
committed by GitHub
parent 17cb59b64c
commit 40c31e138b
62 changed files with 550 additions and 799 deletions

View File

@@ -156,17 +156,6 @@ describe('ReleaseNotesFetcher', () => {
sandbox.stub(window.SignalContext, 'getI18nLocale').returns('en-US');
sandbox.stub(window, 'getVersion').returns(currentVersion);
sandbox.stub(window.Signal, 'Migrations').value({
writeNewAttachmentData: sandbox
.stub()
.resolves({ path: 'path/to/attachment' }),
processNewAttachment: sandbox.stub().resolves({
path: 'processed/path',
contentType: 'image/png',
size: 123,
}),
});
// Mock Whisper events
const fakeWhisperEvents = new EventEmitter();
sandbox.stub(window.Whisper, 'events').value(fakeWhisperEvents);