<commit_before>/* globals describe it */

'use strict';

const chai = require('chai');
const chaihttp = require('chai-http');
const sinon = require('sinon');

chai.use(chaihttp);

describe('accountRouter', () => {
  describe('get /login', () => {
    it('Should work', () => {
      
    });
  });
});<commit_msg>not working router promise<commit_after>/* globals describe it Promise */

'use strict';

const chai = require('chai');
const chaihttp = require('chai-http');

chai.use(chaihttp);

describe('accountRouter', () => {
  describe('get /login', () => {
    it('Should work', function (done) {
      const config = {
        sessionSecret: 'asdf',
        rootPath: './',
        errorResponseCode: '400'
      };

      const data = {
        userData: {

        }
      };

      const accountControllerLoader = require('../../../lib/controllers/account-controller');
      const registerControllerLoader = require('../../../lib/controllers/register-controller');
      const accountUpdateControllerLoader = require('../../../lib/controllers/account-update-controller');

      const controllerLoaders = {
        accountControllerLoader,
        registerControllerLoader,
        accountUpdateControllerLoader
      };

      const logger = {
        info: function () {

        }
      };

      const parametersValidator = function (req, res, next) {
        next();
      };

      require('../../../config/passport')(data.userData);
      const express = require('express');
      const app = require('../../../config/express')(config);

      require('../../../lib/routes/account-router')({
        app,
        express,
        data,
        controllerLoaders,
        logger,
        parametersValidator
      });

      chai.request(app)
        .get('/account/login')
        .end(function (req, res) {
          console.log(req);
          chai.expect(res.status).equals(200);
          done();
        });
    });
  });
});
{'fraction_non_alphanumeric': 0.17420349434737925, 'fraction_numerical': 0.003083247687564234, 'mean_word_length': 2.228855721393035, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3506036', 'n_tokens_mistral': 554, 'n_tokens_neox': 539, 'n_words': 102}