smartxml/test/test.ts

21 lines
417 B
TypeScript
Raw Normal View History

2020-10-24 15:47:12 +00:00
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartxml from '../ts/index';
2020-10-24 16:39:37 +00:00
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);
2020-10-24 15:47:12 +00:00
});
2020-10-24 16:39:37 +00:00
2020-10-24 15:47:12 +00:00
tap.start();