var request = require('supertest');
var app = require('./mb-logging-api-server');

describe('Requests to the root (/api) path', function() {

  it('Returns a 200 status code', function(done) {

    request(app)
      .get('/api')
      .expect(200)
      .end(function(error) {
        if (error) throw error;
        done();
      });

  });

});

describe('Requests to v1 root (/api/v1) path', function() {

  it('Returns a 200 status code', function(done) {

    request(app)
      .get('/api/v1')
      .expect(200)
      .end(function(error) {
        if (error) throw error;
        done();
      });

  });

});

describe('Requests to v1 imports (/api/v1/imports) path', function() {

  it('Returns a 400 status code when required parameters type, exists, source, origin, processed_timestamp and email or phone or drupal_uid are not defined.', function(done) {

    request(app)
      .post('/api/v1/imports')
      .expect(400)
      .end(function(error) {
        if (error) throw error;
        done();
      });

  });

});

describe('Requests to v1 imports (/api/v1/imports/summaries) path', function() {

  it('Returns a 400 status code when required parameters type,source, target_CSV_file, signup_count and skipped are not defined.', function(done) {

    request(app)
      .post('/api/v1/imports/summaries')
      .expect(400)
      .end(function(error) {
        if (error) throw error;
        done();
      });

  });

});

describe('Requests to v1 imports (/api/v1/user/activity) path', function() {

  it('POST: Returns a 400 status code when required parameter vote is not defined.', function(done) {

    request(app)
      .post('/api/v1/user/activity')
      .expect(400)
      .end(function(error) {
        if (error) throw error;
        done();
      });

  });

it('GET: Returns a 400 status code when required parameter "type" and "source" are not defined.', function(done) {

    request(app)
      .get('/api/v1/user/activity')
      .expect(400)
      .end(function(error) {
        if (error) throw error;
        done();
      });

  });

});

@@ -133,32 +133,37 @@
 tion() %7B%0A%0A  it('
+GET: 
 Returns a 200 st
@@ -183,32 +183,32 @@
 unction(done) %7B%0A
-
 %0A    request(app
@@ -406,32 +406,37 @@
 tion() %7B%0A%0A  it('
+GET: 
 Returns a 200 st
@@ -693,32 +693,38 @@
 tion() %7B%0A%0A  it('
+POST: 
 Returns a 400 st
@@ -1127,22 +1127,28 @@
 on() %7B%0A%0A
-
   it('
+POST: 
 Returns 

Add method in test test: POST / GET