The first test checks that the pre-request script has set the environment variable authToken to a non-empty string before the request is sent.
The second test verifies that the Authorization header in the request includes the token prepared by the pre-request script, ensuring the API receives the correct data.
The third test confirms the API responded with status code 200, indicating success.
Using pm.environment.set() in the pre-request script stores data for use in the request. The tests use pm.test() and pm.expect() for clear, readable assertions.