File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ describe('Score counter', () => {
3838 scoreStore . newScore ( 5 ) ;
3939
4040 await counterReachedThree ;
41- expect ( Date . now ( ) - startTime ) . toBeLessThan ( 350 ) ;
42- expect ( Date . now ( ) - startTime ) . toBeGreaterThan ( 299 ) ;
41+ expect ( Date . now ( ) - startTime ) . toBeLessThanOrEqual ( 350 ) ;
42+ expect ( Date . now ( ) - startTime ) . toBeGreaterThanOrEqual ( 299 ) ;
4343 await counterReachedFive ;
44- expect ( Date . now ( ) - startTime ) . toBeLessThan ( 550 ) ;
45- expect ( Date . now ( ) - startTime ) . toBeGreaterThan ( 499 ) ;
44+ expect ( Date . now ( ) - startTime ) . toBeLessThanOrEqual ( 550 ) ;
45+ expect ( Date . now ( ) - startTime ) . toBeGreaterThanOrEqual ( 499 ) ;
4646 } ) ;
4747
4848 it ( 'should end up with correct score if multiple calls in quick succession' , async ( ) => {
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ export default defineConfig({
77 // this ensures that the browser opens upon server start
88 open : true ,
99 } ,
10+ base : '/snake/' ,
1011} ) ;
You can’t perform that action at this time.
0 commit comments