mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 11:53:23 +01:00
Remove window.Signal.Migrations
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user