text: import m from 'mithril';
  import projectPosts from '../../src/c/project-posts';
  
  describe('ProjectPosts', () => {
      let $output, projectPostDetail;
  
      describe('view', () => {
          beforeAll(() => {
              spyOn(m, 'component').and.callThrough();
              projectPostDetail = ProjectPostDetailsMockery()[0];
              const project = m.prop({id: 1231});
              const component = m.component(projectPosts, {
                      project: project
                  }),
                  view = component.view(component.controller({
                      project: project
                  }));
  
              $output = mq(view);
          });
  
          it('should render project post list', () => {
              expect($output.find('.post').length).toEqual(1);
              expect($output.contains(projectPostDetail.title)).toEqual(true);
          });
      });
  });
  