Skip to content

Commit

Permalink
WIP unit test for xml files
Browse files Browse the repository at this point in the history
Fixes: #12208
  • Loading branch information
srl295 committed Sep 25, 2024
1 parent ba5d448 commit b5989da
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions developer/src/common/web/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,5 @@ export { defaultCompilerOptions, CompilerBaseOptions, CompilerCallbacks, Compile
export { CommonTypesMessages } from './common-messages.js';

export * as xml2js from './deps/xml2js/xml2js.js';

export { KeymanXMLParser, KeymanXMLGenerator } from './xml-utils.js';
11 changes: 11 additions & 0 deletions developer/src/common/web/utils/src/xml-utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

/** wrapper for XML parsing support */
export class KeymanXMLParser {

}

/** wrapper for XML generation support */
export class KeymanXMLGenerator {

}

13 changes: 13 additions & 0 deletions developer/src/common/web/utils/test/test-xml-utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { assert } from 'chai';
import 'mocha';

import { KeymanXMLParser, KeymanXMLGenerator } from '../src/xml-utils.js';

describe('XML Parser Test', () => {
it('null test', () => assert.ok(new KeymanXMLParser()));
});

describe('XML Generator Test', () => {
it('null test', () => assert.ok(new KeymanXMLGenerator()));
});

0 comments on commit b5989da

Please sign in to comment.