File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ describe('Sass number', () => {
32
32
expect ( number . denominatorUnits . isEmpty ( ) ) . toBe ( true ) ;
33
33
expect ( number . hasUnits ) . toBe ( false ) ;
34
34
expect ( number . hasUnit ( 'px' ) ) . toBe ( false ) ;
35
- expect ( ( ) => number . assertNoUnits ( ) ) . not . toThrow ( ) ;
35
+ expect ( ( ) => number . assertNoUnits ( ) ) . toEqual ( number ) ;
36
36
expect ( ( ) => number . assertUnit ( 'px' ) ) . toThrow ( ) ;
37
37
} ) ;
38
38
@@ -271,7 +271,7 @@ describe('Sass number', () => {
271
271
expect ( number . numeratorUnits ) . toEqualWithHash ( List ( [ 'px' ] ) ) ;
272
272
expect ( number . hasUnits ) . toBe ( true ) ;
273
273
expect ( number . hasUnit ( 'px' ) ) . toBe ( true ) ;
274
- expect ( ( ) => number . assertUnit ( 'px' ) ) . not . toThrow ( ) ;
274
+ expect ( ( ) => number . assertUnit ( 'px' ) ) . toEqual ( number ) ;
275
275
expect ( ( ) => number . assertNoUnits ( ) ) . toThrow ( ) ;
276
276
} ) ;
277
277
You can’t perform that action at this time.
0 commit comments