mirror of
https://github.com/thewesker/bug-em.git
synced 2025-12-22 04:51:05 -05:00
lol
This commit is contained in:
13
node_modules/twit/tests/test_helpers.js
generated
vendored
Normal file
13
node_modules/twit/tests/test_helpers.js
generated
vendored
Normal 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')
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user