Running the tests doesn't check the result of the worker based pdf processing code. This should be the case.

);
      expect(
        passwordNeededLoadingTask instanceof PDFDocumentLoadingTask
      ).toEqual(true);
      const result1 = passwordNeededLoadingTask.promise.then(
        function () {
          
          expect(false).toEqual(true);
          return Promise.reject(new Error("loadingTask should be rejected"));
        },
        function (data) {
          expect(data instanceof PasswordException).toEqual(true);
          expect(data.code).toEqual(PasswordResponses.NEED_PASSWORD);
          return passwordNeededLoadingTask.destroy();
        }
      );
      const passwordIncorrectLoadingTask = getDocument(
        buildGetDocumentParams(filename, {
          password: "qwerty",
        })
      );
      expect(
        passwordIncorrectLoadingTask instanceof PDFDocumentLoadingTask
      ).toEqual(true);
      const result2 = passwordIncorrectLoadingTask.promise.then(
        function () {
          
          expect(false).toEqual(true);
          return Promise.reject(new Error("loadingTask should be rejected"));
        },