This commit is contained in:
Talor Berthelson
2016-06-17 20:49:15 -04:00
commit 889faf9c1c
699 changed files with 112020 additions and 0 deletions

13
node_modules/twit/tests/test_helpers.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
var assert = require('assert')
var helpers = require('../lib/helpers')
describe('makeQueryString', function () {
it('correctly encodes Objects with String values', function () {
assert.equal(helpers.makeQueryString({a: 'Ladies + Gentlemen'}), 'a=Ladies%20%2B%20Gentlemen');
assert.equal(helpers.makeQueryString({a: 'An encoded string!'}), 'a=An%20encoded%20string%21');
assert.equal(helpers.makeQueryString({a: 'Dogs, Cats & Mice'}), 'a=Dogs%2C%20Cats%20%26%20Mice')
assert.equal(helpers.makeQueryString({a: '☃'}), 'a=%E2%98%83')
assert.equal(helpers.makeQueryString({a: '#haiku #poetry'}), 'a=%23haiku%20%23poetry')
assert.equal(helpers.makeQueryString({a: '"happy hour" :)'}), 'a=%22happy%20hour%22%20%3A%29')
})
})