Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
testing tst instead of the word test
Browse files Browse the repository at this point in the history
  • Loading branch information
LaughingBubba committed Jan 11, 2017
1 parent c9c6ff1 commit bb2101d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/alternate-text-node.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"unit":{"test":{"case":[{"justText":{"zz":"blah blah"}},{"attribText":{"attrib":"das","zz":"capital"}},{"spaces":{"zz":"abc\nasdf\n a"}},{"type":"SANATISE","san":{"b":"Smith & Son","zz":"Alpha & Omega"}}]}}}
{"unit":{"tst":{"case":[{"justText":{"zz":"blah blah"}},{"attribText":{"attrib":"das","zz":"capital"}},{"spaces":{"zz":"abc\nasdf\n a"}},{"type":"SANATISE","san":{"b":"Smith & Son","zz":"Alpha & Omega"}}]}}}
2 changes: 1 addition & 1 deletion test/fixtures/alternate-text-node.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<unit>
<test>
<tst>
<case>
<justText>blah blah</justText>
</case>
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ describe('xml2json', function () {
it('A: defaults without the option being defined', function(done) {

var result = parser.toJson(data, {reversible: true});
expect(result.unit.test.case[0].justText['$t']).to.equal('blah blah');
expect(result.unit.test.case[1].attribText['$t']).to.equal('capital');
expect(result.unit.tst.case[0].justText['$t']).to.equal('blah blah');
expect(result.unit.tst.case[1].attribText['$t']).to.equal('capital');
});

it('B: defaults with option as false', function(done) {
Expand Down

0 comments on commit bb2101d

Please sign in to comment.