fix(web): fixes pred-text unit test instability

This commit is contained in:
Joshua A. Horton 2024-04-22 15:40:37 +07:00
parent 122351bea4
commit ace7474428

View file

@ -60,7 +60,7 @@ describe('LMLayer using the trie model', function () {
//
// https://community.software.sil.org/t/search-term-to-key-in-lexical-model-not-working-both-ways-by-default/3133
it('should use the default searchTermToKey()', function () {
var lmLayer = new LMLayer(helpers.defaultCapabilities, Worker.constructInstance());
var lmLayer = new LMLayer(helpers.defaultCapabilities, Worker.constructInstance(), /* testMode */ true);
return lmLayer.loadModel(
// We need to provide an absolute path since the worker is based within a blob.