<commit_before>var storeHelper = require('../../../../server/components/store/helper.js');

describe('validationComponent', function () {

    describe('checkExsits', function () {

        it('should return File doesn\'t exist. if the file can\'t be found', function (done) {

            storeHelper.checkExsits('/home/Abcd123')
                .catch(function(result) {
                    expect(result.message).toBe('File doesn\'t exist.');
                })
                .finally(done);
        });
    });
});<commit_msg> test(cottontail):  Add some more tests to helper spec<commit_after>var storeHelper = require('../../../../server/components/store/helper.js');

describe('validationComponent', function () {

    describe('checkExsits', function () {

        it('should return a message (File doesn\'t exist.) if the file can\'t be found', function (done) {
            storeHelper.checkExsits('/home/Abcd123')
                .catch(function(result) {
                    expect(result.message).toBe('File doesn\'t exist.');
                })
                .finally(done);
        });

        it('should return (Path name must be a string) if argument is not a string', function (done) {
            storeHelper.checkExsits(12412313)
                .catch(function(result) {
                    expect(result).toBe('Path name must be a string');
                })
                .finally(done);

            storeHelper.checkExsits(undefined)
                .catch(function(result) {
                    expect(result).toBe('Path name must be a string');
                })
                .finally(done);

            storeHelper.checkExsits(null)
                .catch(function(result) {
                    expect(result).toBe('Path name must be a string');
                })
                .finally(done);
        });
    });

    describe('readFile', function () {

    });
});
{'fraction_non_alphanumeric': 0.14293193717277486, 'fraction_numerical': 0.007329842931937173, 'mean_word_length': 1.7615606936416186, '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': '6428888', 'n_tokens_mistral': 516, 'n_tokens_neox': 476, 'n_words': 107}