Comparing version 0.2.9 to 0.3.0
{ | ||
"name": "jest-csl", | ||
"version": "0.2.9", | ||
"version": "0.3.0", | ||
"main": "index.js", | ||
@@ -28,3 +28,2 @@ "repository": "https://github.com/cormacrelf/jest-csl", | ||
"chalk": "^2.4.1", | ||
"citeproc": "^2.1.210", | ||
"commander": "^2.19.0", | ||
@@ -44,5 +43,9 @@ "fs-extra": "^7.0.1", | ||
}, | ||
"peerDependencies": { | ||
"citeproc": ">=2.1.210" | ||
}, | ||
"devDependencies": { | ||
"citeproc": "^2.1.210", | ||
"jest": "^23.6.0" | ||
} | ||
} |
@@ -59,11 +59,2 @@ const { readTestUnits, normalizeItalics } = require('./lib'); | ||
expect(out.map(normalizeItalics)).toMatchObject(test.expect.map(normalizeItalics)); | ||
} else if (test.bibliography && test.expect) { | ||
if (!Array.isArray(test.expect)) { | ||
throw new Error("sequence test.expect must be an array of strings"); | ||
} | ||
let [_meta, bibEntries] = engine.processTestCase(test); | ||
bibEntries = bibEntries.map(b => { | ||
return typeof b === 'string' && b.replace(/^ <div class="csl-entry">(.*)<\/div>\n$/, "$1") | ||
}); | ||
expect(bibEntries.map(normalizeItalics)).toMatchObject(test.expect.map(normalizeItalics)); | ||
} | ||
@@ -70,0 +61,0 @@ } |
@@ -128,6 +128,2 @@ const CSL = require("citeproc"); | ||
} | ||
if (testCase.bibliography) { | ||
let _ = this.produceSequence(engine, testCase.bibliography, fmt, testCase.abbreviations); | ||
return engine.makeBibliography(); | ||
} | ||
} | ||
@@ -134,0 +130,0 @@ |
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
39042
2
767
- Removedciteproc@^2.1.210