Skip to content

Commit

Permalink
Make sure a local copy of Punycode.js is used
Browse files Browse the repository at this point in the history
Node v0.8’s Punycode.js is outdated. This makes sure we’re using the latest version.
  • Loading branch information
mathiasbynens committed May 14, 2013
1 parent 19f3f20 commit 5669be5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
var punycode = require('punycode')
var test = require('tap').test
var jsStringEscape = require('../')

// Require the local copy of Punycode.js, as we don't want to use the outdated
// version that shipped with Node v0.8:
var punycode = require('./../node_modules/punycode/punycode.js')

test('basic use', function (t) {
t.equal(jsStringEscape('"Hello World!"'), '\\"Hello World!\\"')
t.end()
Expand Down

0 comments on commit 5669be5

Please sign in to comment.