@@ -17,42 +17,46 @@ const sceneDimensions = new SceneDimensions(1, 12, 1, 8);
1717const emptyCustomBackground = new CustomBackground ( sceneDimensions ) ;
1818
1919test ( 'Space, background description: no, custom background tile: no' , ( ) => {
20- const builder = new DesignModeCursorDescriptionBuilder ( intl ) ;
20+ const builder = new DesignModeCursorDescriptionBuilder ( ) ;
2121 expect ( builder . buildDescription (
2222 new DesignModeCursorState ( 3 , 2 , sceneDimensions ) ,
2323 'Space' ,
24- emptyCustomBackground
24+ emptyCustomBackground ,
25+ intl
2526 ) ) . toBe ( 'At C 2' ) ;
2627} ) ;
2728
2829test ( 'Space, background description: no, custom background tile: yes' , ( ) => {
29- const builder = new DesignModeCursorDescriptionBuilder ( intl ) ;
30+ const builder = new DesignModeCursorDescriptionBuilder ( ) ;
3031 expect ( builder . buildDescription (
3132 new DesignModeCursorState ( 3 , 2 , sceneDimensions ) ,
3233 'Space' ,
3334 new CustomBackground ( sceneDimensions , [
3435 '0' , '0' , '0' , '0' , '0' , '0' , '0' , '0' , '0' , '0' , '0' , '0' ,
3536 '0' , '0' , '1'
36- ] )
37+ ] ) ,
38+ intl
3739 ) ) . toBe ( 'At C 2 on wall' ) ;
3840} ) ;
3941
4042test ( 'Space, background description: yes, custom background tile: no' , ( ) => {
41- const builder = new DesignModeCursorDescriptionBuilder ( intl ) ;
43+ const builder = new DesignModeCursorDescriptionBuilder ( ) ;
4244 expect ( builder . buildDescription (
4345 new DesignModeCursorState ( 3 , 1 , sceneDimensions ) ,
4446 'Space' ,
45- emptyCustomBackground
47+ emptyCustomBackground ,
48+ intl
4649 ) ) . toBe ( 'At C 1 on the Moon' ) ;
4750} ) ;
4851
4952test ( 'Space, background description: yes, custom background tile: yes' , ( ) => {
50- const builder = new DesignModeCursorDescriptionBuilder ( intl ) ;
53+ const builder = new DesignModeCursorDescriptionBuilder ( ) ;
5154 expect ( builder . buildDescription (
5255 new DesignModeCursorState ( 3 , 1 , sceneDimensions ) ,
5356 'Space' ,
5457 new CustomBackground ( sceneDimensions , [
5558 '0' , '0' , '1'
56- ] )
59+ ] ) ,
60+ intl
5761 ) ) . toBe ( 'At C 1 on wall' ) ;
5862} ) ;
0 commit comments