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 33 * @license MIT
44 */
55
6- import { assert , expect } from 'chai' ;
6+ import { assert } from 'chai' ;
77import { OptionsService , DEFAULT_OPTIONS } from 'common/services/OptionsService' ;
88
99describe ( 'OptionsService' , ( ) => {
@@ -45,7 +45,7 @@ describe('OptionsService', () => {
4545 } ) ;
4646 it ( 'normalizes invalid fontWeight option values' , ( ) => {
4747 service . setOption ( 'fontWeight' , 350 ) ;
48- expect ( ( ) => service . setOption ( 'fontWeight' , 10000 ) ) . to . not . throw ( '' , 'fontWeight should be normalized instead of throwing' ) ;
48+ assert . doesNotThrow ( ( ) => service . setOption ( 'fontWeight' , 10000 ) , 'fontWeight should be normalized instead of throwing' ) ;
4949 assert . equal ( service . getOption ( 'fontWeight' ) , DEFAULT_OPTIONS . fontWeight , 'Values greater than 1000 should be reset to default' ) ;
5050
5151 service . setOption ( 'fontWeight' , 350 ) ;
You can’t perform that action at this time.
0 commit comments