Skip to content

Commit

Permalink
Change syntax to see if build passes (#2488)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yasuf authored and felipewmartins committed Oct 25, 2019
1 parent 189b34c commit 494d817
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -2,7 +2,7 @@ services:
- xvfb
language: node_js
node_js:
- node
- 10
email:
on_failure: change
on_success: never
Expand Down
7 changes: 4 additions & 3 deletions test/specs/helpers/isURLSameOrigin.spec.js
Expand Up @@ -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?<script>alert("hello")</script>'); })
.toThrowError(Error, 'URL contains XSS injection attempt')
})
expect(function() {
isURLSameOrigin('https://github.com/axios/axios?<script>alert("hello")</script>');
}).toThrowError(Error, 'URL contains XSS injection attempt')
});
});

0 comments on commit 494d817

Please sign in to comment.