Permalink
Browse files

updated description

  • Loading branch information...
1 parent ba15610 commit 9c85674bb431e60ff7afbaa707c3cbd2826d5748 @lyaunzbe committed Jan 8, 2013
Showing with 8 additions and 8 deletions.
  1. +2 −2 Makefile
  2. +2 −2 index.js
  3. +2 −2 package.json
  4. +2 −2 test/test.js
View
@@ -3,12 +3,12 @@ REPORTER = spec
test:
@NODE_ENV=test mocha \
--reporter $(REPORTER) \
- --timeout 8000
+ --timeout 20000
test-w:
@NODE_ENV=test mocha \
--reporter $(REPORTER) \
- --timeout 8000 \
+ --timeout 20000 \
--watch
View
@@ -88,10 +88,10 @@ module.exports = function(opts) {
refresh_token: refresh_token,
client_id: opts.client_id,
client_secret: opts.client_secret,
- grant_type:grant_type
+ grant_type:'refresh_token'
};
- request.post({url: endoint_token, form:form}, function(err, req, body){
+ request.post({url: endpoint_token, form:form}, function(err, req, body){
if(err !== null){
callback(err);
}else{
View
@@ -1,7 +1,7 @@
{
"name": "node-gauth",
- "description": "",
- "version": "0.0.1",
+ "description": "Google API OAuth2 module intended for command line interfaces",
+ "version": "1.0.0",
"author": "Ben Lyaunzon <lyaunzon.b@gmail.com>",
"keywords": [
"google",
View
@@ -29,10 +29,10 @@ describe('Google Oauth', function(){
describe('#getToken()', function(){
it('Respond with access token, refresh token, etc', function(done){
gAuth.getToken(auth_code, function(err, body){
- console.log(body);
should.not.exist(err);
should.exist(body);
body.should.be.an('object');
+ body.should.have.length(5);
access_token = body.access_token;
refresh_token = body.refresh_token;
//Add value tests
@@ -44,10 +44,10 @@ describe('Google Oauth', function(){
describe('#refreshToken()', function(){
it('Respond with new access token, expiration time, etc', function(done){
gAuth.refreshToken(refresh_token, function(err, body){
- console.log(body);
should.not.exist(err);
should.exist(body);
body.should.be.an('object');
+ body.should.have.length(4);
done();
});
});

0 comments on commit 9c85674

Please sign in to comment.