Permalink
Browse files

Fixed text replacement tests to use non-empty tests (for stable output)

  • Loading branch information...
1 parent 8043f1d commit bcacca6771dbd73af987ba3c004d4f7160320a14 @vgrichina committed Jan 7, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 test.js
View
@@ -50,11 +50,11 @@ describe("easy", function() {
it("should allow to replace element's text", function() {
var xml = easy.parse(sampleXml);
- xml.book[0].language = "";
+ xml.book[0].language = "replaced";
assert.equal(xml.$.toString(),
'<books><book name="Lord of the Rings">' +
'<author name="J. R. R. Tolkien"/>' +
- '<language/>' +
+ '<language>replaced</language>' +
'</book></books>');
});
@@ -142,11 +142,11 @@ describe("easy", function() {
it("should allow to replace element's text", function() {
var xml = easy.parse(sampleXml);
- xml.book.language = "";
+ xml.book.language = "replaced";
assert.equal(xml.$.toString(),
'<books><book name="Lord of the Rings">' +
'<author name="J. R. R. Tolkien"/>' +
- '<language/>' +
+ '<language>replaced</language>' +
'</book></books>');
});

0 comments on commit bcacca6

Please sign in to comment.