Asserting the current environment

GET https://postman-echo.com/get

You can check the active (currently selected) environment in Qodex.

pm.test("Check the active environment", () => {
  pm.expect(pm.environment.name).to.eql("Production");
});