Stop using util.format.

This will massively shrink the browserified footprint.
This commit is contained in:
Ruben Vermeersch
2013-12-18 16:46:09 +01:00
parent 0d4f80e7f6
commit 6b2cb2e71e
3 changed files with 27 additions and 10 deletions

View File

@@ -23,4 +23,18 @@ describe('Write', function () {
var str = po.toString();
assertHasLine(str, "#, fuzzy");
});
it('write msgid', function () {
var input = fs.readFileSync(__dirname + '/fixtures/fuzzy.po', 'utf8');
var po = PO.parse(input);
var str = po.toString();
assertHasLine(str, "msgid \"Sources\"");
});
it('write msgstr', function () {
var input = fs.readFileSync(__dirname + '/fixtures/fuzzy.po', 'utf8');
var po = PO.parse(input);
var str = po.toString();
assertHasLine(str, "msgstr \"Source\"");
});
});