Permalink
Browse files

character encode correction and fix test

  • Loading branch information...
1 parent 425a961 commit 413945c345ec2d0f8d8205c2a7030f8fe5819d1a @vitorleal committed Feb 22, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 lib/find-cine.js
  2. +1 −1 package.json
  3. +2 −2 test/test.js
View
@@ -51,7 +51,7 @@ findCine.prototype.makeRequest = function(url, callback) {
//request the URl
request({
method: 'POST',
- encoding: 'utf8',
+ encoding: 'binary',
uri: encodeURI(url)
}, function(err, res, body) {
self.processRequest(body, function (err, result) {
View
@@ -1,6 +1,6 @@
{
"name": "find-cine",
- "version": "0.1.0",
+ "version": "0.1.11111111111",
"description": "Find cinemas near a street (good to use with geoLocation)",
"main": "index.js",
"scripts": {
View
@@ -21,15 +21,15 @@ describe("NEAR function", function() {
describe("THEATER id function", function() {
it("must have total and theaters", function(done) {
- findCine.theaterId('Calle del pinar 6', 'f5620c58eb9a048e', function(err, results) {
+ findCine.theaterId('Calle del pinar 6', '14d0d63a370c4944', function(err, results) {
results.should.have.property('total');
results.should.have.property('theaters');
done();
});
});
it("total should be = 1", function(done) {
- findCine.theaterId('Calle del pinar 6', 'f5620c58eb9a048e', function(err, results) {
+ findCine.theaterId('Calle del pinar 6', '14d0d63a370c4944', function(err, results) {
results.total.should.be.equal(1);
done();
});

0 comments on commit 413945c

Please sign in to comment.