<commit_before>var assert    = require('assert')
  , should    = require('should')
  , Sequelize = require('sequelize')
  , db        = require('../../../models');

describe('Users modules', function(){
    it('find all users', function(done){
        db.USER.findAll().success(function(users){
            console.log(JSON.stringify(users));
            users.should.be.ok;
            done();
        })
    })
});<commit_msg>added unit test to with where clause<commit_after>var assert    = require('assert')
  , should    = require('should')
  , Sequelize = require('sequelize')
  , db        = require('../../../models');

describe('Users modules', function(){
    it('find all users', function(done){
        db.USER.findAll().success(function(users){
            console.log(JSON.stringify(users));
            users.should.be.ok;
            done();
        })
    })
    it('find user by email `<EMAIL>` ', function(done){
        db.USER.find({ where: { EMAIL: '<EMAIL>'}})
        .success(function(users){
            console.log(JSON.stringify(users));
            users.should.be.ok;
            done();
        });
    });
});
{'fraction_non_alphanumeric': 0.18404907975460122, 'fraction_numerical': 0.0, 'mean_word_length': 2.235127478753541, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '229465', 'n_tokens_mistral': 330, 'n_tokens_neox': 327, 'n_words': 60}