diff --git a/.travis.yml b/.travis.yml
index e12ba8d29c..fe08cc4870 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,7 @@ services:
- xvfb
language: node_js
node_js:
- - node
+ - 10
email:
on_failure: change
on_success: never
diff --git a/test/specs/helpers/isURLSameOrigin.spec.js b/test/specs/helpers/isURLSameOrigin.spec.js
index 918bc99cee..ab43472636 100644
--- a/test/specs/helpers/isURLSameOrigin.spec.js
+++ b/test/specs/helpers/isURLSameOrigin.spec.js
@@ -10,7 +10,8 @@ describe('helpers::isURLSameOrigin', function () {
});
it('should detect XSS scripts on a same origin request', function () {
- expect(() => { isURLSameOrigin('https://github.com/axios/axios?'); })
- .toThrowError(Error, 'URL contains XSS injection attempt')
- })
+ expect(function() {
+ isURLSameOrigin('https://github.com/axios/axios?');
+ }).toThrowError(Error, 'URL contains XSS injection attempt')
+ });
});