Toggle navigation
Toggle navigation
This project
Loading...
Sign in
강동현
/
nodejs-game
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강동현
2021-06-08 21:31:27 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d35168b9b4b39c96d4f6d3552681fca59b493270
d35168b9
1 parent
642ec43f
Builds for 1 pipeline
passed
in 7 minutes 53 seconds
타이머 테스트에서 약간의 오차 허용
Changes
1
Builds
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
server/test/round.test.ts
server/test/round.test.ts
View file @
d35168b
...
...
@@ -25,14 +25,9 @@ describe("라운드", () => {
word
.
length
);
expect
(
drawerSocket
.
socket
.
received
(
"timer"
)).
deep
.
eq
({
state
:
"started"
,
time
:
60
,
});
expect
(
guesserSockets
[
0
].
socket
.
received
(
"timer"
)).
deep
.
eq
({
state
:
"started"
,
time
:
60
,
});
let
timerSettings
=
drawerSocket
.
socket
.
received
(
"timer"
);
expect
(
timerSettings
.
state
).
eq
(
timerSettings
.
state
);
expect
(
timerSettings
.
time
).
greaterThan
(
59
);
});
it
(
"drawer가 단어를 선택하지 않으면 라운드가 진행되지 않습니다"
,
(
done
)
=>
{
const
{
drawerSocket
,
guesserSockets
}
=
prepareGame
(
2
,
5
,
0.1
);
...
...
Please
register
or
login
to post a comment