Move unit tests onto esbuild sources

This commit is contained in:
Daniel Imms
2024-07-05 09:10:20 -07:00
parent ba3ba899a5
commit 9c3694af5a
3 changed files with 12 additions and 24 deletions
-10
View File
@@ -7,7 +7,6 @@ import * as path from 'path';
import * as sinon from 'sinon';
import { assert } from 'chai';
import * as fontFinder from 'font-finder';
import * as fontLigatures from 'font-ligatures';
import * as ligatureSupport from '.';
@@ -106,15 +105,6 @@ describe('LigaturesAddon', () => {
await delay(500);
assert.isTrue(onRefresh.notCalled);
});
it('ensures no empty errors are thrown', async () => {
sinon.stub(fontLigatures, 'loadFile').callsFake(async () => { throw undefined; });
term.options.fontFamily = 'Iosevka';
assert.deepEqual(term.joiner!(input), []);
await delay(500);
assert.isTrue(onRefresh.notCalled);
(fontLigatures.loadFile as sinon.SinonStub).restore();
});
});
class MockTerminal {