Added Item.toString() and moved save logic there.

This commit is contained in:
Mike Holly
2011-12-22 16:17:04 -08:00
parent 79b8009b2a
commit f507223705
2 changed files with 46 additions and 39 deletions

View File

@@ -7,9 +7,7 @@ po.load('text.po', function(_po){
_po.save('copy.po', function(){
var orig = fs.readFileSync('text.po');
var data = fs.readFileSync('copy.po');
console.log(data == orig);
assert.equal(orig, data, 'Saved data is identical to original.');
});
});