From d1291f67551c58168af43698a359cb5ddfd266b0 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 01:33:53 +0100 Subject: node_modules --- node_modules/po2json/test/po2json_test.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'node_modules/po2json/test/po2json_test.js') diff --git a/node_modules/po2json/test/po2json_test.js b/node_modules/po2json/test/po2json_test.js index 18385274c..4239749b1 100644 --- a/node_modules/po2json/test/po2json_test.js +++ b/node_modules/po2json/test/po2json_test.js @@ -129,6 +129,20 @@ module.exports["parse with Plural-Forms == nplurals=1; plural=0;"] = { } } +module.exports["parse with Plural-Forms == nplurals=1; plural=0; and with Jed1.x format"] = { + setUp: function(callback){ + this.po = fs.readFileSync(__dirname + "/fixtures/ja.po"); + this.json = JSON.parse(fs.readFileSync(__dirname + "/fixtures/ja-jed1.x.json", "utf-8")); + callback(); + }, + + parse: function(test){ + var parsed = po2json.parse(this.po, { format: 'jed1.x' }); + test.deepEqual(parsed, this.json); + test.done(); + } +} + module.exports["parse with no headers"] ={ setUp: function(callback){ this.po = fs.readFileSync(__dirname + "/fixtures/en-no-header.po"); -- cgit v1.2.3