From 131d4650a5c6831cb31a8ab3ba365544380562c5 Mon Sep 17 00:00:00 2001 From: Rob Wu Date: Sun, 24 Nov 2024 23:37:16 +0100 Subject: [PATCH] Drop trailing whitespace from test/unit/api_spec.js test/unit/api_spec.js is the only JS file in the tree with trailing whitespace. Because `trim_trailing_whitespace = true` in .editorconfig, any editor supporting EditorConfig would trim whitespace when the file is changed, which results in test failures. This commit fixes the issue by trimming the trailing whitespace and adjusting the test expectations. --- test/unit/api_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/api_spec.js b/test/unit/api_spec.js index d73d23225..9d8641f72 100644 --- a/test/unit/api_spec.js +++ b/test/unit/api_spec.js @@ -2438,19 +2438,19 @@ describe("api", function () { const manifesto = ` The Mozilla Manifesto Addendum Pledge for a Healthy Internet - + The open, global internet is the most powerful communication and collaboration resource we have ever seen. It embodies some of our deepest hopes for human progress. It enables new opportunities for learning, building a sense of shared humanity, and solving the pressing problems facing people everywhere. - + Over the last decade we have seen this promise fulfilled in many ways. We have also seen the power of the internet used to magnify divisiveness, incite violence, promote hatred, and intentionally manipulate fact and reality. We have learned that we should more explicitly set out our aspirations for the human experience of the internet. We do so now. `.repeat(100); - expect(manifesto.length).toEqual(80500); + expect(manifesto.length).toEqual(79300); let loadingTask = getDocument(buildGetDocumentParams("empty.pdf")); let pdfDoc = await loadingTask.promise;