aboutsummaryrefslogtreecommitdiff
path: root/node_modules/po2json/test/po2json_test.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 01:33:53 +0100
commitd1291f67551c58168af43698a359cb5ddfd266b0 (patch)
tree55a13ed29fe1915e3f42f1b1b7038dafa2e975a7 /node_modules/po2json/test/po2json_test.js
parentd0a0695fb5d34996850723f7d4b1b59c3df909c2 (diff)
node_modules
Diffstat (limited to 'node_modules/po2json/test/po2json_test.js')
-rw-r--r--node_modules/po2json/test/po2json_test.js14
1 files changed, 14 insertions, 0 deletions
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");