<commit_before>import React from 'react';
import renderer from 'react-test-renderer';
import {useStaticQuery} from 'gatsby';
import Page404 from '../../src/pages/404';


beforeEach(() => {
    useStaticQuery.mockImplementationOnce(() => {
        return {
            jenkinsPluginSiteInfo: {
                api: {
                    commit: 'FAKECommit'
                },
                website: {
                    commit: 'FAKECommit'
                }
            }
        };
    });
});

describe('Page404', () => {
    it('renders correctly', () => {
        const tree = renderer.create(<Page404 />).toJSON();<commit_msg>stub out builddate for footer test<commit_after>import React from 'react';
import renderer from 'react-test-renderer';
import {useStaticQuery} from 'gatsby';
import Page404 from '../../src/pages/404';


beforeEach(() => {
    useStaticQuery.mockImplementationOnce(() => {
        return {
            jenkinsPluginSiteInfo: {
                api: {
                    commit: 'FAKECommit'
                },
                website: {
                    commit: 'FAKECommit'
                }
            },
            site: {
                buildTime: new Date(1578980455).getUTCDate()
            }
        };
    });
});

describe('Page404', () => {
    it('renders correctly', () => {
        const tree = renderer.create(<Page404 />).toJSON();
{'fraction_non_alphanumeric': 0.14275414563806776, 'fraction_numerical': 0.024513338139870222, 'mean_word_length': 1.6641074856046065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '3478536', 'n_tokens_mistral': 410, 'n_tokens_neox': 375, 'n_words': 74}