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.
This commit is contained in:
Rob Wu 2024-11-24 23:37:16 +01:00
parent d45a61b579
commit 131d4650a5

View File

@ -2450,7 +2450,7 @@ describe("api", function () {
We have learned that we should more explicitly set out our aspirations for the human experience of the internet. We have learned that we should more explicitly set out our aspirations for the human experience of the internet.
We do so now. We do so now.
`.repeat(100); `.repeat(100);
expect(manifesto.length).toEqual(80500); expect(manifesto.length).toEqual(79300);
let loadingTask = getDocument(buildGetDocumentParams("empty.pdf")); let loadingTask = getDocument(buildGetDocumentParams("empty.pdf"));
let pdfDoc = await loadingTask.promise; let pdfDoc = await loadingTask.promise;