smartxml/test/test.ts
2020-10-24 16:39:37 +00:00

21 lines
417 B
TypeScript

import { expect, tap } from '@pushrocks/tapbundle';
import * as smartxml from '../ts/index';
let testSmartxml: smartxml.SmartXml;
tap.test('should create ', async () => {
testSmartxml = new smartxml.SmartXml();
});
tap.test('should create an xml string', async () => {
const xmlResult = testSmartxml.createXmlFromObject({
hello: {
wow: 'test'
}
});
console.log(xmlResult);
});
tap.start();