From 22ad864cc7bbe0e2c61b61e1adb689dd6130303c Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 22 Dec 2024 13:33:41 +0100 Subject: [PATCH] Move the reporter file to the test root folder The reporter is used in both the unit and the font tests, so this commit moves it to the test root folder to more clearly indicate that this is a shared resource and so the font tests don't have to reach into the unit tests folder to import it (which improves separation). --- test/font/jasmine-boot.js | 2 +- test/{unit/testreporter.js => reporter.js} | 0 test/unit/jasmine-boot.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename test/{unit/testreporter.js => reporter.js} (100%) diff --git a/test/font/jasmine-boot.js b/test/font/jasmine-boot.js index e9646db42..a8b81ded0 100644 --- a/test/font/jasmine-boot.js +++ b/test/font/jasmine-boot.js @@ -40,7 +40,7 @@ "use strict"; -import { TestReporter } from "../unit/testreporter.js"; +import { TestReporter } from "../reporter.js"; async function initializePDFJS(callback) { await Promise.all( diff --git a/test/unit/testreporter.js b/test/reporter.js similarity index 100% rename from test/unit/testreporter.js rename to test/reporter.js diff --git a/test/unit/jasmine-boot.js b/test/unit/jasmine-boot.js index 4c0967dc4..230a80561 100644 --- a/test/unit/jasmine-boot.js +++ b/test/unit/jasmine-boot.js @@ -42,7 +42,7 @@ import { GlobalWorkerOptions } from "pdfjs/display/worker_options.js"; import { isNodeJS } from "../../src/shared/util.js"; -import { TestReporter } from "./testreporter.js"; +import { TestReporter } from "../reporter.js"; async function initializePDFJS(callback) { await Promise.all(