From b5989da3aeb0e2bf289618878e899e194aac74c1 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 24 Sep 2024 20:27:51 -0700 Subject: [PATCH] WIP unit test for xml files Fixes: #12208 --- developer/src/common/web/utils/src/index.ts | 2 ++ developer/src/common/web/utils/src/xml-utils.ts | 11 +++++++++++ .../src/common/web/utils/test/test-xml-utils.ts | 13 +++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 developer/src/common/web/utils/src/xml-utils.ts create mode 100644 developer/src/common/web/utils/test/test-xml-utils.ts diff --git a/developer/src/common/web/utils/src/index.ts b/developer/src/common/web/utils/src/index.ts index 7ee5c507b80..4a748bc354a 100644 --- a/developer/src/common/web/utils/src/index.ts +++ b/developer/src/common/web/utils/src/index.ts @@ -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'; diff --git a/developer/src/common/web/utils/src/xml-utils.ts b/developer/src/common/web/utils/src/xml-utils.ts new file mode 100644 index 00000000000..fa71dcf9656 --- /dev/null +++ b/developer/src/common/web/utils/src/xml-utils.ts @@ -0,0 +1,11 @@ + +/** wrapper for XML parsing support */ +export class KeymanXMLParser { + +} + +/** wrapper for XML generation support */ +export class KeymanXMLGenerator { + +} + diff --git a/developer/src/common/web/utils/test/test-xml-utils.ts b/developer/src/common/web/utils/test/test-xml-utils.ts new file mode 100644 index 00000000000..756855e6b9f --- /dev/null +++ b/developer/src/common/web/utils/test/test-xml-utils.ts @@ -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())); +}); +