Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Akamu
Game Client iOS
Commits
2effc8d0
Commit
2effc8d0
authored
Jul 17, 2020
by
Maurice Kraus
Browse files
test(core): this fixes the AkamuCore api due to recent changes
parent
d1017b5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
AkamuCoreTests/UILayer/DuelFrameViewModelTests.swift
View file @
2effc8d0
...
...
@@ -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
,
started
UserId
:
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
,
started
UserId
:
1
,
isAnswered
:
false
,
pool
:
pool
,
questions
:
questionList
)
let
viewModel
=
DuelFrameViewModel
(
round
:
round
,
duelRepository
:
duelRepository
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment