21 lines
417 B
TypeScript
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();
|