Skip to content

Commit 494d817

Browse files
yasuffelipewmartins
authored andcommitted
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
1 parent 189b34c commit 494d817

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22
- xvfb
33
language: node_js
44
node_js:
5-
- node
5+
- 10
66
email:
77
on_failure: change
88
on_success: never

test/specs/helpers/isURLSameOrigin.spec.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ describe('helpers::isURLSameOrigin', function () {
1010
});
1111

1212
it('should detect XSS scripts on a same origin request', function () {
13-
expect(() => { isURLSameOrigin('https://github.com/axios/axios?<script>alert("hello")</script>'); })
14-
.toThrowError(Error, 'URL contains XSS injection attempt')
15-
})
13+
expect(function() {
14+
isURLSameOrigin('https://github.com/axios/axios?<script>alert("hello")</script>');
15+
}).toThrowError(Error, 'URL contains XSS injection attempt')
16+
});
1617
});

0 commit comments

Comments
 (0)