pofile/tests/run.js
2011-12-27 12:03:19 -08:00

13 lines
327 B
JavaScript

var po = require('../lib/po.js')
, fs = require('fs')
, assert = require('assert')
po.load('text.po', function(_po){
_po.save('copy.po', function(){
var orig = fs.readFileSync('text.po');
var data = fs.readFileSync('copy.po');
assert.equal(orig, data, 'Saved data is identical to original.');
});
});