fix(core): update

This commit is contained in:
2023-10-20 17:38:44 +02:00
parent 5481831711
commit 77c2433edc
14 changed files with 5918 additions and 11229 deletions

View File

@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartxml from '../ts/index';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartxml from '../ts/index.js';
let testSmartxml: smartxml.SmartXml;
let testXml = `
@ -27,8 +27,8 @@ tap.test('should create an xml string', async () => {
tap.test('should parse an yml file', async () => {
const jsObject = testSmartxml.parseXmlToObject(testXml);
console.log(jsObject);
expect(typeof jsObject).to.equal('object');
expect(jsObject).property('hello').property('wow').to.equal('nice');
expect(typeof jsObject).toEqual('object');
expect(jsObject).property('hello').property('wow').toEqual('nice');
});