Skip to content

Commit

Permalink
Fix ota lint CLI command (#1070)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndpnt authored May 9, 2024
2 parents ecdc1de + 229c3d4 commit f719338
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased [patch]

> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs.
### Fixed

- Fix `ota lint` command

## 1.2.0 - 2024-05-08

_Full changeset and discussions: [#1069](https://github.com/OpenTermsArchive/engine/pull/1069)._
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"eslint-plugin-chai-friendly": "^0.7.2",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-json-format": "^2.0.1",
"eslint-plugin-no-only-tests": "^3.1.0",
"express": "^4.18.2",
"express-async-errors": "^3.1.1",
"fs-extra": "^10.0.0",
Expand Down Expand Up @@ -103,7 +104,6 @@
"devDependencies": {
"@commitlint/cli": "^19.0.3",
"dir-compare": "^4.0.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"keep-a-changelog": "^2.5.3",
"nock": "^13.2.1",
"node-stream-zip": "^1.15.0",
Expand Down
2 changes: 1 addition & 1 deletion src/archivist/extract/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ describe('Extract', () => {

context('when PDF contains no text', () => {
it('throws an ExtractDocumentError error', async () => {
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/);
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/);
});
});
});
Expand Down
File renamed without changes.

0 comments on commit f719338

Please sign in to comment.