       NylasEnv.savedState.sidebarAccountIds = [1, 2, 3]
       NylasEnv.savedState.perspective =
         accountIds: [1]
-        categories: () => [{accountId: 1, id: 'A'}]
+        categories: => [{accountId: 1, id: 'A'}]
       FocusedPerspectiveStore._initializeFromSavedState()
       expect(FocusedPerspectiveStore._setPerspective).toHaveBeenCalledWith(NylasEnv.savedState.perspective, [1])
 

      NylasEnv.savedState.sidebarAccountIds = [1, 2, 3]
      NylasEnv.savedState.perspective =
        accountIds: [1, 2, 3],
        categories: () => [{accountId: 1, id: 'A'}],
      FocusedPerspectiveStore._initializeFromSavedState()
      expect(FocusedPerspectiveStore._setPerspective).toHaveBeenCalledWith(@default, @default.accountIds)

      NylasEnv.savedState.sidebarAccountIds = [1, 2, 3]
      NylasEnv.savedState.perspective =
        accountIds: [3]
        categories: () => [{accountId: 3, id: 'A'}]
      FocusedPerspectiveStore._initializeFromSavedState()
      expect(FocusedPerspectiveStore._setPerspective).toHaveBeenCalledWith(@default, @default.accountIds)


      NylasEnv.savedState.sidebarAccountIds = [1, 2]
      NylasEnv.savedState.perspective =
        accountIds: [1, 2]
        categories: => [{accountId: 1, id: 'A'}]
      FocusedPerspectiveStore._initializeFromSavedState()
      expect(FocusedPerspectiveStore._setPerspective).toHaveBeenCalledWith(NylasEnv.savedState.perspective, [1, 2])

      NylasEnv.savedState.sidebarAccountIds = [1, 2]
      NylasEnv.savedState.perspective =
        accountIds: [1]
        categories: => []
        type: 'DraftsMailboxPerspective'

      FocusedPerspectiveStore._initializeFromSavedState()
