<commit_before>import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import { project, workflow } from '../dev-classifier/mock-data';
import ProjectPage from './project-page';

describe('ProjectPage', () => {
  const background = {
    src: 'the project background image url'
  };

  it('should render without crashing', () => {
    shallow(<ProjectPage />);
  });

  it('should render the project nav bar', () => {
    const wrapper = shallow(<ProjectPage />);
    const navElement = wrapper.find('ProjectNavbar').first();
    expect(navElement).to.have.lengthOf(1);
  });

  it('should receive a background, project and workflow props', () => {
    const wrapper = mount(<ProjectPage background={background} project={project} workflow={workflow} />);
    expect(wrapper.props().background).to.equal(background);
    expect(wrapper.props().project).to.equal(project);
    expect(wrapper.props().workflow).to.equal(workflow);
  });
  
  describe('with a launch-approved project', () => {
    it('should not render the Zooniverse disclaimer.');
    
  });<commit_msg>Add a mock page component<commit_after>import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import { project, workflow } from '../dev-classifier/mock-data';
import ProjectPage from './project-page';

function Page() {
  return(
    <p>Hello world!</p>
  )
}

describe('ProjectPage', () => {
  const background = {
    src: 'the project background image url'
  };

  it('should render without crashing', () => {
    shallow(<ProjectPage><Page /></ProjectPage>);
  });

  it('should render the project nav bar', () => {
    const wrapper = shallow(<ProjectPage><Page /></ProjectPage>);
    const navElement = wrapper.find('ProjectNavbar').first();
    expect(navElement).to.have.lengthOf(1);
  });

  it('should receive a background, project and workflow props', () => {
    const wrapper = mount(<ProjectPage background={background} project={project} workflow={workflow} ><Page /></ProjectPage>);
    expect(wrapper.props().background).to.equal(background);
    expect(wrapper.props().project).to.equal(project);
    expect(wrapper.props().workflow).to.equal(workflow);
  });
  
  describe('with a launch-approved project', () => {
    it('should not render the Zooniverse disclaimer.');
    
  });
{'fraction_non_alphanumeric': 0.17034834324553952, 'fraction_numerical': 0.0008496176720475786, 'mean_word_length': 4.221729490022173, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, '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': '6598001', 'n_tokens_mistral': 684, 'n_tokens_neox': 658, 'n_words': 165}