From 494d8173140debaf822c51bfe9324226cfefadb2 Mon Sep 17 00:00:00 2001 From: Yasu Flores Date: Fri, 25 Oct 2019 07:25:53 -0700 Subject: [PATCH] Change syntax to see if build passes (#2488) * Change syntax to see if build passes * Test commit * Test with node 10 * Test adding all browsers in travis * remove other browsers when running on travis --- .travis.yml | 2 +- test/specs/helpers/isURLSameOrigin.spec.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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') + }); });