| @@ -38,6 +38,13 @@ describe('Write', function () { | ||||
|         assertHasLine(str, "msgstr \"Source\""); | ||||
|     }); | ||||
|  | ||||
|     it('write translator comment', function () { | ||||
|         var input = fs.readFileSync(__dirname + '/fixtures/comment.po', 'utf8'); | ||||
|         var po = PO.parse(input); | ||||
|         var str = po.toString(); | ||||
|         assertHasLine(str, "# Comment"); | ||||
|     }); | ||||
|  | ||||
|     describe('msgctxt', function () { | ||||
|         it('should write context field to file', function () { | ||||
|             var input = fs.readFileSync(__dirname + '/fixtures/big.po', 'utf8'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user