From 4975f389ffb2b5543c6f8ea2f4a0abebba8dd6b6 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Tue, 8 Sep 2020 06:18:37 -0700 Subject: [PATCH] Use assert over expect --- src/common/services/OptionsService.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/services/OptionsService.test.ts b/src/common/services/OptionsService.test.ts index a42220fec6..c289b5be1d 100644 --- a/src/common/services/OptionsService.test.ts +++ b/src/common/services/OptionsService.test.ts @@ -3,7 +3,7 @@ * @license MIT */ -import { assert, expect } from 'chai'; +import { assert } from 'chai'; import { OptionsService, DEFAULT_OPTIONS } from 'common/services/OptionsService'; describe('OptionsService', () => { @@ -45,7 +45,7 @@ describe('OptionsService', () => { }); it('normalizes invalid fontWeight option values', () => { service.setOption('fontWeight', 350); - expect(() => service.setOption('fontWeight', 10000)).to.not.throw('', 'fontWeight should be normalized instead of throwing'); + assert.doesNotThrow(() => service.setOption('fontWeight', 10000), 'fontWeight should be normalized instead of throwing'); assert.equal(service.getOption('fontWeight'), DEFAULT_OPTIONS.fontWeight, 'Values greater than 1000 should be reset to default'); service.setOption('fontWeight', 350);