Fix JavaScript unit tests for licensing.

Review Request #14693 — Created Nov. 14, 2025 and updated

Information

Review Board
release-7.1.x

Reviewers

Some of the recent batch of licensing updates broke the JavaScript unit
tests. I had simply failed to update them, or at some point lost changes
to them. In either case, this change updates the unit tests to work
correctly.

There are two key updates made:

  1. fetch spies now properly return a Response, rather than a raw
    object.

  2. callAction() arguments are now expected to be non-serialized JSON
    data, and contain the missing session_token.

All JS unit tests pass.

Summary ID
Fix JavaScript unit tests for licensing.
Some of the recent batch of licensing updates broke the JavaScript unit tests. I had simply failed to update them, or at some point lost changes to them. In either case, this change updates the unit tests to work correctly. There are two key updates made: 1. `fetch` spies now properly return a `Response`, rather than a raw object. 2. `callAction()` arguments are now expected to be non-serialized JSON data, and contain the missing `session_token`.
8df72fa6cf8a84d99c8c37d2020b98366943afbd
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2.