From 756f0d8ce50d1e48a6e0582b48cd6cc71a659507 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 7 Aug 2020 09:14:58 +1000 Subject: [PATCH] fix delete can send attachment test --- .../integration/stubs/stub_app_dot_net_api.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ts/test/session/integration/stubs/stub_app_dot_net_api.ts b/ts/test/session/integration/stubs/stub_app_dot_net_api.ts index ca6d796cd..cce40b973 100644 --- a/ts/test/session/integration/stubs/stub_app_dot_net_api.ts +++ b/ts/test/session/integration/stubs/stub_app_dot_net_api.ts @@ -122,6 +122,19 @@ class StubAppDotNetAPI extends LokiAppDotNetServerAPI { }, }; } + if ( + endpoint === 'files' + ) { + return { + statusCode: 200, + response: { + data: { + url: 'fakeurl', + id: 12345, + }, + }, + }; + } if (endpoint === 'channels/1') { let name = 'Unknown group';