mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fixed the broken unit tests
This commit is contained in:
parent
44e7a2dfa4
commit
3df3114bee
4 changed files with 20 additions and 20 deletions
|
@ -2328,7 +2328,7 @@ class OpenGroupAPISpec: QuickSpec {
|
|||
OpenGroupAPI
|
||||
.downloadFile(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
from: "testRoom",
|
||||
on: "testserver",
|
||||
using: dependencies
|
||||
|
|
|
@ -1574,7 +1574,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 10,
|
||||
imageId: "10",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -1732,7 +1732,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 10,
|
||||
imageId: "10",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -1843,7 +1843,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 10,
|
||||
imageId: "10",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -1912,7 +1912,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 10,
|
||||
imageId: "10",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -2988,7 +2988,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 12,
|
||||
imageId: "12",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -3104,7 +3104,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 12,
|
||||
imageId: "12",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -3188,7 +3188,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
created: 0,
|
||||
activeUsers: 0,
|
||||
activeUsersCutoff: 0,
|
||||
imageId: 12,
|
||||
imageId: "12",
|
||||
pinnedMessages: nil,
|
||||
admin: false,
|
||||
globalAdmin: false,
|
||||
|
@ -3279,7 +3279,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: "testServer",
|
||||
using: dependencies
|
||||
|
@ -3293,7 +3293,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: "testServer",
|
||||
using: dependencies
|
||||
|
@ -3321,7 +3321,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: "testServer",
|
||||
using: dependencies
|
||||
|
@ -3348,7 +3348,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
return Promise<(OnionRequestResponseInfoType, Data?)>.pending().promise
|
||||
}
|
||||
|
||||
static func sendOnionRequest(to snode: Snode, invoking method: SnodeAPIEndpoint, with parameters: JSON, using version: OnionRequestAPIVersion, associatedWith publicKey: String?) -> Promise<Data> {
|
||||
static func sendOnionRequest(to snode: Snode, invoking method: SnodeAPIEndpoint, with parameters: JSON, associatedWith publicKey: String?) -> Promise<Data> {
|
||||
return Promise.value(Data())
|
||||
}
|
||||
}
|
||||
|
@ -3357,7 +3357,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
let promise = mockStorage.read { db in
|
||||
OpenGroupManager.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: "testServer",
|
||||
using: dependencies
|
||||
|
@ -3382,7 +3382,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: OpenGroupAPI.defaultServer,
|
||||
using: dependencies
|
||||
|
@ -3400,7 +3400,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: OpenGroupAPI.defaultServer,
|
||||
using: dependencies
|
||||
|
@ -3428,7 +3428,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: OpenGroupAPI.defaultServer,
|
||||
using: dependencies
|
||||
|
@ -3471,7 +3471,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: OpenGroupAPI.defaultServer,
|
||||
using: dependencies
|
||||
|
@ -3500,7 +3500,7 @@ class OpenGroupManagerSpec: QuickSpec {
|
|||
OpenGroupManager
|
||||
.roomImage(
|
||||
db,
|
||||
fileId: 1,
|
||||
fileId: "1",
|
||||
for: "testRoom",
|
||||
on: OpenGroupAPI.defaultServer,
|
||||
using: dependencies
|
||||
|
|
|
@ -46,7 +46,7 @@ class SOGSEndpointSpec: QuickSpec {
|
|||
// Files
|
||||
|
||||
expect(OpenGroupAPI.Endpoint.roomFile("test").path).to(equal("room/test/file"))
|
||||
expect(OpenGroupAPI.Endpoint.roomFileIndividual("test", 123).path).to(equal("room/test/file/123"))
|
||||
expect(OpenGroupAPI.Endpoint.roomFileIndividual("test", "123").path).to(equal("room/test/file/123"))
|
||||
|
||||
// Inbox/Outbox (Message Requests)
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ class TestOnionRequestAPI: OnionRequestAPIType {
|
|||
return Promise.value((responseInfo, mockResponse))
|
||||
}
|
||||
|
||||
static func sendOnionRequest(to snode: Snode, invoking method: SnodeAPIEndpoint, with parameters: JSON, using version: OnionRequestAPIVersion, associatedWith publicKey: String?) -> Promise<Data> {
|
||||
static func sendOnionRequest(to snode: Snode, invoking method: SnodeAPIEndpoint, with parameters: JSON, associatedWith publicKey: String?) -> Promise<Data> {
|
||||
return Promise.value(mockResponse!)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue