mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-28 11:17:45 +00:00
fix(web): Apply unit-test suggestions from code review
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
This commit is contained in:
parent
26c787d24d
commit
6d991eeecc
1 changed files with 4 additions and 4 deletions
|
|
@ -205,8 +205,8 @@ describe('Correction Distance Modeler', function() {
|
|||
const secondLayerNodes = tNode
|
||||
.buildSubstitutionEdges(secondLayerTransforms)
|
||||
.flatMap(node => node.processSubsetEdge());
|
||||
assert.isAbove(firstLayerNodes.length, FIRST_CHAR_VARIANTS);
|
||||
firstLayerNodes.sort((a, b) => a.currentCost - b.currentCost);
|
||||
assert.isAbove(secondLayerNodes.length, 10);
|
||||
secondLayerNodes.sort((a, b) => a.currentCost - b.currentCost);
|
||||
|
||||
const teNode = secondLayerNodes[0];
|
||||
|
||||
|
|
@ -288,8 +288,8 @@ describe('Correction Distance Modeler', function() {
|
|||
const secondLayerNodes = tNode
|
||||
.buildSubstitutionEdges(secondLayerTransforms)
|
||||
.flatMap(node => node.processSubsetEdge());
|
||||
assert.isAbove(firstLayerNodes.length, FIRST_CHAR_VARIANTS);
|
||||
firstLayerNodes.sort((a, b) => a.currentCost - b.currentCost);
|
||||
assert.isAbove(secondLayerNodes.length, 10);
|
||||
secondLayerNodes.sort((a, b) => a.currentCost - b.currentCost);
|
||||
|
||||
const teNode = secondLayerNodes[0];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue