Skip to content

Commit

Permalink
Updating unit test on #109.
Browse files Browse the repository at this point in the history
  • Loading branch information
leonelsanchesdasilva committed Oct 18, 2024
1 parent 8b3c4dc commit 56b0b7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/xslt/apply-template.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ describe('xsl:apply-template', () => {
// assert.ok(outXmlString);
});

it.skip('XSLT template with text on both sides', async () => {
it('XSLT template with text on both sides', async () => {
const xmlString = `<root>
<test name="test1">This text lost</test>
</root>`;

const xsltString = `<?xml version="1.0"?>
<xsl:stylesheet version="1.0">
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<span>X<xsl:value-of select="test/@name" />Y</span>
<span>X<xsl:value-of select="//test/@name" />Y</span>
</xsl:template>
</xsl:stylesheet>`;

const expectedOutString = `<span>XY</span>`;
const expectedOutString = `<span>Xtest1Y</span>`;

const xsltClass = new Xslt();
const xmlParser = new XmlParser();
Expand Down

0 comments on commit 56b0b7b

Please sign in to comment.