Skip to content

Commit 4975f38

Browse files
committed
Use assert over expect
1 parent 3e0f033 commit 4975f38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/services/OptionsService.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @license MIT
44
*/
55

6-
import { assert, expect } from 'chai';
6+
import { assert } from 'chai';
77
import { OptionsService, DEFAULT_OPTIONS } from 'common/services/OptionsService';
88

99
describe('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);

0 commit comments

Comments
 (0)