<commit_before>'use strict';

var jsf = require('json-schema-faker');
var userModel = require('../../models').io.user;
var supertest = require('supertest');
var mockery = require('mockery');
var util = require('../../test/util');

var Users = require('./users.db.mock');

describe('Users Endpoint', function() {

    var app;
    var mail;
    var newUser1;
    var newUser2;

    beforeAll(function() {

        mockery.enable({
            warnOnReplace     : false,
            warnOnUnregistered: false
        });

        mockery.registerSubstitute(
            './users.db', './users.db.mock');
        mockery.registerSubstitute(
            '../mail/mail.ctrl', '../mail/mail.ctrl.mock');

        mail = require('../mail/mail.ctrl');
        app = require('../app/app');
    });

    beforeEach(function() {
        newUser1 = jsf(userModel);
        newUser2 = jsf(userModel);<commit_msg>fixing a linting issue<commit_after>'use strict';

var jsf = require('json-schema-faker');
var userModel = require('../../models').io.user;
var supertest = require('supertest');
var mockery = require('mockery');
var util = require('../../test/util');

var Users = require('./users.db.mock');

describe('Users Endpoint', function() {

    var app;
    var mail;
    var newUser1;

    beforeAll(function() {

        mockery.enable({
            warnOnReplace     : false,
            warnOnUnregistered: false
        });

        mockery.registerSubstitute(
            './users.db', './users.db.mock');
        mockery.registerSubstitute(
            '../mail/mail.ctrl', '../mail/mail.ctrl.mock');

        mail = require('../mail/mail.ctrl');
        app = require('../app/app');
    });

    beforeEach(function() {
        newUser1 = jsf(userModel);
{'fraction_non_alphanumeric': 0.17844925883694412, 'fraction_numerical': 0.0034207525655644243, 'mean_word_length': 2.31758034026465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4763836', 'n_tokens_mistral': 534, 'n_tokens_neox': 517, 'n_words': 102}