Skip to content

Commit

Permalink
common exports
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Apr 29, 2021
1 parent 90b52b7 commit 5598244
Show file tree
Hide file tree
Showing 28 changed files with 29 additions and 92 deletions.
4 changes: 1 addition & 3 deletions test/tests/behavior-paged-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/canvas-label-annotation-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotationPage, annotation, annotationBody;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/canvas-with-dimensions-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotationPage, annotation, annotationBody;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson,
Expand Down
4 changes: 1 addition & 3 deletions test/tests/collection-no-manifests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let collectionJson;
Expand Down
5 changes: 1 addition & 4 deletions test/tests/collection.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const urljoin = common.urljoin;
const { assert, build, urljoin } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let collectionJson,
Expand Down
4 changes: 1 addition & 3 deletions test/tests/custom-annotations-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotation, annotationPage, annotationBody;
Expand Down
5 changes: 1 addition & 4 deletions test/tests/dat-gateway.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const urljoin = common.urljoin;
const { assert, build, urljoin } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let collectionJson, thumbnailJson, item, manifestJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/do-promises-work.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists } = require("../../Utils");

const manifest = "/files-only-manifest";
Expand Down
5 changes: 1 addition & 4 deletions test/tests/epub-collection.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const urljoin = common.urljoin;
const { assert, build, urljoin } = require("../common");
const { fileExists, readJson } = require("../../Utils");

const collection = "/epub-collection";
Expand Down
4 changes: 1 addition & 3 deletions test/tests/external-resource-annotation-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotation, annotationPage, annotationBody;
Expand Down
6 changes: 1 addition & 5 deletions test/tests/file-annotation-collection.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const urljoin = common.urljoin;
const { assert, build, urljoin, canvasHasContentAnnotations } = require("../common");
const { fileExists, readJson } = require("../../Utils");
const canvasHasContentAnnotations = common.canvasHasContentAnnotations;

const collection = "/file-annotation-collection";
const collectionUrl = "http://test.com/file-annotation-collection";
Expand Down
4 changes: 1 addition & 3 deletions test/tests/files-only-collection.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let collectionJson, manifestJson, canvasJson, annotationPage;
Expand Down
5 changes: 1 addition & 4 deletions test/tests/files-only-manifest-dat.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const urljoin = common.urljoin;
const { assert, build, urljoin } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotationPage;
Expand Down
5 changes: 1 addition & 4 deletions test/tests/files-only-manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const urljoin = common.urljoin;
const { assert, build, urljoin } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotationPage, annotation, annotationBody;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/generate-thumbs-dat-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, thumbnailJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/generate-thumbs-http-gateway-dat-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, thumbnailJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/generate-thumbs-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, thumbnailJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/gh-pages.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let collectionJson, thumbnailJson, manifestJson, canvasJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/image-dimensions-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, annotationPage, annotation, annotationBody;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/multiple-behavior-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson;
Expand Down
6 changes: 2 additions & 4 deletions test/tests/readme-manifest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { fileExists, readJson } = require("../../Utils");
const { assert, build } = require("../common");
const { fileExists } = require("../../Utils");

const manifest = "/readme-manifest";
const manifestUrl = "http://test.com/readme-manifest";
Expand Down
4 changes: 1 addition & 3 deletions test/tests/sort-canvases-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvases;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/sort-canvases-numeric-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvases;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/sort-files-numeric-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvases;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/thumbs-single-manifest-dat.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, thumbnailJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/thumbs-single-manifest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const build = common.build;
const { assert, build } = require("../common");
const { fileExists, readJson } = require("../../Utils");

let manifestJson, canvasJson, thumbnailJson;
Expand Down
4 changes: 1 addition & 3 deletions test/tests/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const common = require("../common");
const assert = common.assert;
const URL = common.URL;
const { assert, URL } = require("../common");
const { mergePaths } = require("../../Utils");

let url, filePath, id;
Expand Down

0 comments on commit 5598244

Please sign in to comment.