
/**
 * WPCONN module
 */

var WPCONN = require('../');

/**
 * Testing data
 */

var test = require('./data');
var util = require('./util');

/**
 * me
 */

describe('me', function(){

  describe('async', function(){

    describe('info', function(){
      it('should require user object', function(done){
        var wpconn = util.wpconn();

        wpconn.me.info(function(err, me){
          if (err) throw err;

          // testing object
          me
            .should.be.ok
            .and.an.instanceOf(Object);

          // testing user data
          me.ID
            .should.be.an.instanceOf(Number);

          done();
        });
      });
    });

    describe('likes', function(){
      it('should require user likes', function(done){
        var wpconn = util.wpconn();

        wpconn.me.likes(function(err, likes){
          if (err) throw err;

          likes.found
            .should.be.an.instanceOf(Number);

          likes.likes
            .should.be.an.instanceOf(Array);

          done();
        });
      });
    });

  });

});

@@ -230,16 +230,18 @@
 be('info
+()
 ', funct
@@ -277,16 +277,28 @@
 re user 
+information 
 object',
@@ -690,24 +690,26 @@
 cribe('likes
+()
 ', function(
@@ -940,32 +940,32 @@
 nceOf(Number);%0A%0A
-
           likes.
@@ -1065,16 +1065,337 @@
    %7D);%0A%0A
+    describe('groups()', function()%7B%0A      it('should require groups', function(done)%7B%0A        var wpconn = util.wpconn();%0A%0A        wpconn.me.groups(function(err,groups)%7B%0A          if (err) throw err;%0A%0A          groups.groups%0A            .should.be.an.instanceOf(Array);%0A%0A          done();%0A        %7D);%0A      %7D);%0A    %7D);%0A%0A
   %7D);%0A%0A%7D

add `user groups` test