Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Privacy
Imprint
Contact
Login methods
Sign in
Toggle navigation
Menu
Open sidebar
ARSnova
arsnova-click-v2-frontend
Commits
52132e6a
Commit
52132e6a
authored
May 30, 2021
by
Christopher Mark Fullarton
Browse files
Fixes linting errors in spec files
parent
6105e5cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/quiz/quiz-flow/confidence-rate/confidence-rate.component.spec.ts
View file @
52132e6a
...
...
@@ -61,7 +61,7 @@ describe('QuizFlow: ConfidenceRateComponent', () => {
provide
:
QuizService
,
useValue
:
{
quizUpdateEmitter
:
of
(
null
),
loadDataToPlay
:
()
=>
new
Promise
(
resolve
=>
resolve
()),
loadDataToPlay
:
()
=>
new
Promise
<
void
>
(
resolve
=>
resolve
()),
},
},
HeaderLabelService
,
{
provide
:
ThemesService
,
...
...
@@ -105,7 +105,7 @@ describe('QuizFlow: ConfidenceRateComponent', () => {
}));
it
(
'
#sendConfidence
'
,
waitForAsync
(()
=>
{
spyOn
(
component
,
'
sendConfidence
'
).
and
.
callFake
(()
=>
new
Promise
<
Subscription
>
(
resolve
=>
resolve
()));
spyOn
(
component
,
'
sendConfidence
'
).
and
.
callFake
(()
=>
new
Promise
<
Subscription
>
(
resolve
=>
resolve
(
null
)));
component
.
sendConfidence
();
...
...
src/app/root/nickname-chooser/nickname-input/nickname-input.component.spec.ts
View file @
52132e6a
...
...
@@ -53,7 +53,7 @@ describe('NicknameInputComponent', () => {
},
{
provide
:
QuizService
,
useValue
:
{
loadDataToPlay
:
()
=>
new
Promise
(
resolve
=>
resolve
()),
loadDataToPlay
:
()
=>
new
Promise
<
void
>
(
resolve
=>
resolve
()),
quiz
:
{},
},
},
{
...
...
@@ -110,7 +110,7 @@ describe('NicknameInputComponent', () => {
describe
(
'
#joinQuiz
'
,
()
=>
{
it
(
'
should join the quiz
'
,
waitForAsync
(
inject
([
Router
],
(
router
:
Router
)
=>
{
spyOn
(
router
,
'
navigate
'
).
and
.
callFake
(()
=>
new
Promise
<
boolean
>
(
resolve
=>
{
resolve
(
);
}
));
spyOn
(
router
,
'
navigate
'
).
and
.
callFake
(()
=>
new
Promise
<
boolean
>
(
resolve
=>
resolve
(
false
)
));
component
.
joinQuiz
();
...
...
Write
Preview
Supports
Markdown
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