karma-viewport
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -61,7 +61,5 @@ /* | ||
/* Register debug context middleware, if Karma's iframe should be used */ | ||
if (config.context === "#context" && client.useIframe) { | ||
config.beforeMiddleware = config.beforeMiddleware || [] | ||
config.beforeMiddleware.push("viewport") | ||
} | ||
/* Register debug context middleware */ | ||
config.beforeMiddleware = config.beforeMiddleware || [] | ||
config.beforeMiddleware.push("viewport") | ||
@@ -83,3 +81,3 @@ /* Register preprocessor for viewport configuration */ | ||
* the debug context doesn't include an iframe by default. If the requested | ||
* file is just the plain `debug.html` without the embed parameter (which is | ||
* file is just the plain `debug.html` without the `embed` parameter (which is | ||
* introduced by this library) we just serve our monkey patched context iframe | ||
@@ -86,0 +84,0 @@ * including the actual debug context, served by Karma's own file server. |
{ | ||
"name": "karma-viewport", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "A Karma plugin for testing responsive layouts", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -179,3 +179,3 @@ [![Travis][travis-image]][travis-link] | ||
After iteration, `viewport.reset()` is called internally. | ||
After breakpoint iteration, `viewport.reset()` is called internally. | ||
@@ -182,0 +182,0 @@ ## License |
Sorry, the diff of this file is not supported yet
34239
526