Skip to content

Commit

Permalink
Test on Node.js v12 (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
okuryu committed Jan 14, 2020
1 parent 2f5f126 commit fdfb10a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,4 +1,4 @@
language: node_js
node_js:
- "8"
- "10"
- "12"
2 changes: 1 addition & 1 deletion test/unit/serialize.js
Expand Up @@ -299,7 +299,7 @@ describe('serialize( obj )', function () {
});

it('should serialize dangerous regexps', function () {
var re = /[</script><script>alert('xss')//]/
var re = /[<\/script><script>alert('xss')\/\/]/
expect(serialize(re)).to.be.a('string').equal('new RegExp("[\\u003C\\\\\\u002Fscript\\u003E\\u003Cscript\\u003Ealert(\'xss\')\\\\\\u002F\\\\\\u002F]", "")');
});
});
Expand Down

0 comments on commit fdfb10a

Please sign in to comment.