Skip to content

Commit

Permalink
chore(common/web): add first test case for ElementString()
Browse files Browse the repository at this point in the history
  • Loading branch information
markcsinclair committed Dec 16, 2024
1 parent ee23da5 commit 77076eb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion common/web/types/tests/kmx/kmx-plus/element-string.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import 'mocha';
import { assert } from 'chai';
import { ElemElementFlags, ElemElement } from '../../../src/kmx/kmx-plus/element-string.js';
import { ElemElementFlags, ElemElement, ElementString } from '../../../src/kmx/kmx-plus/element-string.js';
import { StrsItem, UsetItem } from '../../../src/kmx/kmx-plus/kmx-plus.js';
import { UnicodeSet } from '../../../src/ldml-keyboard/unicodeset-parser-api.js';

Expand Down Expand Up @@ -59,6 +59,14 @@ describe('Test of ElementString', () => {
});
});
});
describe('Test of ElementString', () => {
describe('Test of fromStrings()', () => {
it('returns an empty El;ementString if source is null', () => {
const es = ElementString.fromStrings({}, null);
assert.deepEqual(es, new ElementString());
});
});
});
});

function initElemElement(
Expand Down

0 comments on commit 77076eb

Please sign in to comment.