   data =
     testproject1:
       title: "Test project 1"
-      group: "Test"
       paths: ["/Users/project-1"]
     testproject2:
       title: "Test project 2"
       paths: ["/Users/project-2"]
       template: "test-template"
       icon: "icon-bug"
+      group: "Test"
 
   projects = ->
     array = []

    workspaceElement = atom.views.getView(atom.workspace)
    listView = new ProjectsListView
    {list, filterEditorView} = listView
    listView.show(projects())

  it "will list all projects", ->
    expect(list.find('li').length).toBe 2

  it "will add the correct icon to each project", ->
    icon1 = list.find('li[data-project-title="Test project 1"]').find('.icon')
    icon2 = list.find('li[data-project-title="Test project 2"]').find('.icon')
    expect(icon1.attr('class')).toContain 'icon-chevron-right'


      expect(listView.getFilterKey()).toBe listView.defaultFilterKey
      expect(listView.getFilterQuery()).toBe '1'
      expect(list.find('li').length).toBe 1

  describe "It sorts the projects in correct order", ->
    it "sorts after title", ->
      atom.config.set('project-manager.sortBy', 'title')
      listView.show(projects())
      expect(list.find('li:eq(0)').data('projectTitle')).toBe "Test project 1"

    it "sort after group", ->
      atom.config.set('project-manager.sortBy', 'group')
      listView.show(projects())
      expect(list.find('li:eq(0)').data('projectTitle')).toBe "Test project 2"