Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "xliff", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "xliff2js and js2xliff converter xliff utils", | ||
@@ -10,6 +10,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"xml2js": "0.4.17" | ||
"xml2js": "0.4.18" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.18.0", | ||
"eslint": "^4.4.1", | ||
"expect.js": "^0.3.1", | ||
@@ -16,0 +16,0 @@ "mocha": "^3.2.0" |
101
test/test.js
@@ -62,12 +62,13 @@ const expect = require('expect.js'); | ||
test('createjs', (fn) => (done) => { | ||
fn(fixtures.example.js.sourceLanguage, | ||
fixtures.example.js.targetLanguage, | ||
fixtures.example.js_source, | ||
fixtures.example.js_target, | ||
'namespace1', | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example.js); | ||
done(); | ||
} | ||
fn( | ||
fixtures.example.js.sourceLanguage, | ||
fixtures.example.js.targetLanguage, | ||
fixtures.example.js_source, | ||
fixtures.example.js_target, | ||
'namespace1', | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example.js); | ||
done(); | ||
} | ||
); | ||
@@ -77,12 +78,13 @@ }); | ||
test('createxliff', (fn) => (done) => { | ||
fn(fixtures.example.js.sourceLanguage, | ||
fixtures.example.js.targetLanguage, | ||
fixtures.example.js_source, | ||
fixtures.example.js_target, | ||
'namespace1', | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example.xliff); | ||
done(); | ||
} | ||
fn( | ||
fixtures.example.js.sourceLanguage, | ||
fixtures.example.js.targetLanguage, | ||
fixtures.example.js_source, | ||
fixtures.example.js_target, | ||
'namespace1', | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example.xliff); | ||
done(); | ||
} | ||
); | ||
@@ -92,12 +94,13 @@ }); | ||
test('createxliff12', (fn) => (done) => { | ||
fn(fixtures.example.js.sourceLanguage, | ||
fixtures.example.js.targetLanguage, | ||
fixtures.example.js_source, | ||
fixtures.example.js_target, | ||
'namespace1', | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example.xliff12); | ||
done(); | ||
} | ||
fn( | ||
fixtures.example.js.sourceLanguage, | ||
fixtures.example.js.targetLanguage, | ||
fixtures.example.js_source, | ||
fixtures.example.js_target, | ||
'namespace1', | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example.xliff12); | ||
done(); | ||
} | ||
); | ||
@@ -165,11 +168,12 @@ }); | ||
test('createjs', (fn) => (done) => { | ||
fn(fixtures.example_multi.js.sourceLanguage, | ||
fixtures.example_multi.js.targetLanguage, | ||
fixtures.example_multi.js_source, | ||
fixtures.example_multi.js_target, | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example_multi.js); | ||
done(); | ||
} | ||
fn( | ||
fixtures.example_multi.js.sourceLanguage, | ||
fixtures.example_multi.js.targetLanguage, | ||
fixtures.example_multi.js_source, | ||
fixtures.example_multi.js_target, | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example_multi.js); | ||
done(); | ||
} | ||
); | ||
@@ -179,11 +183,12 @@ }); | ||
test('createxliff', (fn) => (done) => { | ||
fn(fixtures.example_multi.js.sourceLanguage, | ||
fixtures.example_multi.js.targetLanguage, | ||
fixtures.example_multi.js_source, | ||
fixtures.example_multi.js_target, | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example_multi.xliff); | ||
done(); | ||
} | ||
fn( | ||
fixtures.example_multi.js.sourceLanguage, | ||
fixtures.example_multi.js.targetLanguage, | ||
fixtures.example_multi.js_source, | ||
fixtures.example_multi.js_target, | ||
(err, res) => { | ||
expect(err).not.to.be.ok(); | ||
expect(res).to.eql(fixtures.example_multi.xliff); | ||
done(); | ||
} | ||
); | ||
@@ -190,0 +195,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33298
629
+ Addedxml2js@0.4.18(transitive)
+ Addedxmlbuilder@9.0.7(transitive)
- Removedlodash@4.17.21(transitive)
- Removedxml2js@0.4.17(transitive)
- Removedxmlbuilder@4.2.1(transitive)
Updatedxml2js@0.4.18