@opentermsarchive/engine 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentermsarchive/engine",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Tracks and makes visible changes to the terms of online services",
5
5
  "homepage": "https://opentermsarchive.org",
6
6
  "bugs": {
@@ -71,6 +71,7 @@
71
71
  "eslint-plugin-chai-friendly": "^0.7.2",
72
72
  "eslint-plugin-import": "^2.29.0",
73
73
  "eslint-plugin-json-format": "^2.0.1",
74
+ "eslint-plugin-no-only-tests": "^3.1.0",
74
75
  "express": "^4.18.2",
75
76
  "express-async-errors": "^3.1.1",
76
77
  "fs-extra": "^10.0.0",
@@ -103,7 +104,6 @@
103
104
  "devDependencies": {
104
105
  "@commitlint/cli": "^19.0.3",
105
106
  "dir-compare": "^4.0.0",
106
- "eslint-plugin-no-only-tests": "^3.1.0",
107
107
  "keep-a-changelog": "^2.5.3",
108
108
  "nock": "^13.2.1",
109
109
  "node-stream-zip": "^1.15.0",
@@ -525,7 +525,7 @@ describe('Extract', () => {
525
525
 
526
526
  context('when PDF contains no text', () => {
527
527
  it('throws an ExtractDocumentError error', async () => {
528
- await expect(extract({ content: await fs.readFile(path.resolve(__dirname, '../../../test/fixtures/termsNoText.pdf')), mimeType: mime.getType('pdf') })).to.be.rejectedWith(ExtractDocumentError, /contains no text/);
528
+ await expect(extract({ content: await fs.readFile(path.resolve(__dirname, '../../../test/fixtures/termsWithoutText.pdf')), mimeType: mime.getType('pdf') })).to.be.rejectedWith(ExtractDocumentError, /contains no text/);
529
529
  });
530
530
  });
531
531
  });