Skip to content

Commit d0a735e

Browse files
committed
karma now use chrome when not in travis
1 parent 4af7e03 commit d0a735e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = function (config) {
4242

4343
autoWatch: true,
4444

45-
browsers: [ isCI ? "PhantomJS" : "PhantomJS" /*"Chrome"*/ ],
45+
browsers: [ isCI ? "PhantomJS" : "Chrome" ],
4646

4747
captureTimeout: 60000,
4848
browserNoActivityTimeout: 30000,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"fs-promise": "~0.3.1",
4646
"karma": "~0.12.31",
4747
"karma-chai": "^0.1.0",
48+
"karma-chrome-launcher": "~0.1.7",
4849
"karma-cli": "~0.0.4",
4950
"karma-mocha": "~0.1.10",
5051
"karma-mocha-reporter": "~1.0.2",

test/recaptchaSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ReCAPTCHA from "../src/recaptcha";
55
describe("ReCAPTCHA", function () {
66
it("Should output a alert with message", function () {
77
let instance = ReactTestUtils.renderIntoDocument(
8-
<ReCAPTCHA siteKey="xxx" />
8+
<ReCAPTCHA siteKey="xxx" onloadCallbackName="onloadcallback" />
99
);
1010
assert.ok(ReactTestUtils.findRenderedDOMComponentWithTag(instance, "div"));
1111
});

0 commit comments

Comments
 (0)