From 7f58c48503867133391bbe5011d77fd8089385a1 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Fri, 29 Jul 2022 11:27:23 -0700 Subject: [PATCH] Fix tests as errors are no longer thrown on font access fail --- addons/xterm-addon-ligatures/src/index.test.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/xterm-addon-ligatures/src/index.test.ts b/addons/xterm-addon-ligatures/src/index.test.ts index f9f10d0b..0cfe2462 100644 --- a/addons/xterm-addon-ligatures/src/index.test.ts +++ b/addons/xterm-addon-ligatures/src/index.test.ts @@ -144,7 +144,6 @@ describe('xterm-addon-ligatures', () => { assert.deepEqual(term.joiner!(input), []); await delay(500); assert.isTrue(onRefresh.notCalled); - assert.throws(() => term.joiner!(input)); }); it('returns nothing if the font is not present on the system', async () => { @@ -176,7 +175,6 @@ describe('xterm-addon-ligatures', () => { assert.deepEqual(term.joiner!(input), []); await delay(500); assert.isTrue(onRefresh.notCalled); - assert.throws(() => term.joiner!(input)); }); it('ensures no empty errors are thrown', async () => { @@ -185,7 +183,6 @@ describe('xterm-addon-ligatures', () => { assert.deepEqual(term.joiner!(input), []); await delay(500); assert.isTrue(onRefresh.notCalled); - assert.throws(() => term.joiner!(input), 'Failure while loading font'); (fontLigatures.loadFile as sinon.SinonStub).restore(); }); });