File tree 1 file changed +21
-7
lines changed
1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,30 @@ describe("useless tests", function()
13
13
opts .breaks_before_long = 4
14
14
opts .start_at_launch = false
15
15
pomodoro .setup (opts )
16
- -- TODO: use the opts value directly
17
- assert (pomodoro .work_duration == 10 * MIN_IN_MS , " Opt work_duration" )
18
- assert (pomodoro .break_duration == 10 * MIN_IN_MS , " Opt break_duration" )
19
- assert (pomodoro .breaks_before_long == 4 , " Opt breaks_before_long" )
20
16
assert (
21
- pomodoro .long_break_duration == 15 * MIN_IN_MS ,
17
+ pomodoro .work_duration == opts .work_duration * MIN_IN_MS ,
18
+ " Opt work_duration"
19
+ )
20
+ assert (
21
+ pomodoro .break_duration == opts .break_duration * MIN_IN_MS ,
22
+ " Opt break_duration"
23
+ )
24
+ assert (
25
+ pomodoro .breaks_before_long == opts .breaks_before_long ,
26
+ " Opt breaks_before_long"
27
+ )
28
+ assert (
29
+ pomodoro .long_break_duration == opts .long_break_duration * MIN_IN_MS ,
22
30
" Opt long_break_duration"
23
31
)
24
- assert (pomodoro .delay_duration == 10 * MIN_IN_MS , " Opt delay_duration" )
25
- assert (pomodoro .start_at_launch == false , " Opt start_at_launch" )
32
+ assert (
33
+ pomodoro .delay_duration == opts .delay_duration * MIN_IN_MS ,
34
+ " Opt delay_duration"
35
+ )
36
+ assert (
37
+ pomodoro .start_at_launch == opts .start_at_launch ,
38
+ " Opt start_at_launch"
39
+ )
26
40
end )
27
41
-- TODO: tests
28
42
end )
You can’t perform that action at this time.
0 commit comments