Skip to content

Commit b88af7f

Browse files
committed
Upgrade karma to get rid of ES6 and ES7 polyfill
Previous Karma version pulled in a polyfill that made it possible to use ES6 and ES7 features in tests. Such features might not be available during runtime and could result in errors. `String#padStart()` is an example of a feature that was used in the code and was added by the Karma polyfill. Tests worked just fine but driver code failed at runtime in older NodeJS versions. Note that Babel runtime that is used by the driver does not polyfill instance methods such as `String#padStart()`.
1 parent 0722da0 commit b88af7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
"gulp-util": "^3.0.6",
5353
"gulp-watch": "^4.3.5",
5454
"jasmine-console-reporter": "^2.0.1",
55-
"karma": "^1.7.1",
55+
"karma": "^2.0.3",
5656
"karma-chrome-launcher": "^2.2.0",
5757
"karma-edge-launcher": "^0.4.2",
58-
"karma-firefox-launcher": "^1.0.1",
58+
"karma-firefox-launcher": "^1.1.0",
5959
"karma-ie-launcher": "^1.0.0",
60-
"karma-jasmine": "^1.1.0",
61-
"karma-spec-reporter": "^0.0.31",
60+
"karma-jasmine": "^1.1.2",
61+
"karma-spec-reporter": "^0.0.32",
6262
"lodash": "^4.17.4",
6363
"lolex": "^1.5.2",
6464
"minimist": "^1.2.0",

0 commit comments

Comments
 (0)