<commit_before>import { Attachment } from "../../src/attachment/attachment";

describe('Attachment', () => {
    let attachment;

    beforeEach(() => {
        attachment = new Attachment('foo.txt', 1580903174652);
    });
    
    it('should have the correct name', () => {
        expect(attachment.displayName).toBe('foo.txt');
    });

    it('should have the correct display date', () => {
        expect(attachment.getFormatedTime()).toBe('5/1/2020 6:46');
    });
});<commit_msg>attempt to fix failing unit test<commit_after>import { Attachment } from "../../src/attachment/attachment";

describe('Attachment', () => {
    let attachment;

    beforeEach(() => {
        attachment = new Attachment('foo.txt', Date.now());
    });
    
    it('should have the correct name', () => {
        expect(attachment.displayName).toBe('foo.txt');
    });

    it('should have the correct display date', () => {
        const format = /\d{1,2}\/\d{1,2}\/\d{4}\s\d{1,2}:\d{2}/;
        expect(format.test(attachment.getFormatedTime())).toBe(true);
    });
});
{'fraction_non_alphanumeric': 0.2052980132450331, 'fraction_numerical': 0.02838221381267739, 'mean_word_length': 2.9625468164794007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4012672', 'n_tokens_mistral': 336, 'n_tokens_neox': 317, 'n_words': 59}