alias.es.tst 310 B

123456789101112131415
  1. /*
  2. alias.tst - Alias http tests
  3. */
  4. const HTTP = tget('TM_HTTP') || "127.0.0.1:8080"
  5. let http: Http = new Http
  6. /*
  7. The old-alias route maps to /alias/atest.html
  8. */
  9. http.get(HTTP + "/old-alias/")
  10. http.followRedirects = true
  11. ttrue(http.status == 200)
  12. ttrue(http.response.contains("alias/atest.html"))