Commit 2effc8d0 authored by Maurice Kraus's avatar Maurice Kraus
Browse files

test(core): this fixes the AkamuCore api due to recent changes

parent d1017b5c
......@@ -40,8 +40,7 @@ class DuelFrameViewModelTests: RealmQuickSpec {
state = StateRelay(value: .loggedIn(UserSession.testInstance))
loggedInStatus = assemblyHelper.createObservables(of: state).2
duelRepository = assembler.resolver.resolveDuelRepository(appState: state, loggedInStatus: loggedInStatus, urlSession: Env.session /* ignored */ )
user = TruncatedUser(id: 1, username: "TestUser", title: Title.getDefault(), avatar: Avatar.getDefault())
user = TruncatedUser(id: 1, username: "TestUser", titleId: 1, avatarId: 1)
pool = Pool(id: 1, name: "Pool", code: "P", imageId: 1)
disposeBag = DisposeBag()
......@@ -59,7 +58,7 @@ class DuelFrameViewModelTests: RealmQuickSpec {
Question(id: 1, author: "", text: "Question1", subject: "Test", answer: self.makeAnswer(id: 1, type: .fourOptionsLong)),
Question(id: 2, author: "", text: "Question2", subject: "Test", answer: self.makeAnswer(id: 2, type: .fourOptionsShort))
])
round = Round(id: 1, number: 1, started: user, isAnswered: false, pool: pool, questions: questionList)
round = Round(id: 1, number: 1, startedUserId: 1, isAnswered: false, pool: pool, questions: questionList)
let viewModel = DuelFrameViewModel(round: round, duelRepository: duelRepository)
......@@ -120,7 +119,7 @@ class DuelFrameViewModelTests: RealmQuickSpec {
Question(id: 5, author: "", text: "Question5", subject: "Test", answer: answer5),
Question(id: 6, author: "", text: "Question6", subject: "Test", answer: answer6)
])
round = Round(id: 1, number: 1, started: user, isAnswered: false, pool: pool, questions: questionList)
round = Round(id: 1, number: 1, startedUserId: 1, isAnswered: false, pool: pool, questions: questionList)
let viewModel = DuelFrameViewModel(round: round, duelRepository: duelRepository)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment