Skip to content
  • Richard Hansen's avatar
    tests: Refine CachingMiddleware tests · 3a34db84
    Richard Hansen authored
      * Lint functions
      * Fix assignment of `settings.minify`
      * Use a for loop to avoid copied code for the `minify = true` and
        `minify = false` cases
      * Put each resource fetch into its own test case
      * Check for 200 status code
      * Use `.expect()` to check header value
      * Use `.expect(fn)` instead of `.then(fn)`
    3a34db84