text: import { getVisibleExits } from './currentRoom.js'
  
  describe('CurrentRoom Selectors', () => {
      const testState = {
          permanentHeaders: {
              '987': {
                  PermanentId: '987',
                  Type: 'ROOM',
                  Ancestry: '987',
                  Exits: [
                      {
                          Name: 'TestOne',
                          RoomId: '234'
                      },
                      {
                          Name: 'TestTwo',
                          RoomId: '456'
                      }
                  ]
              },
              '123': {
                  PermanentId: '123',
                  Ancestry: '123',
                  Type: 'NEIGHBORHOOD',
                  Visibility: 'Private'
              },
              '234': {
                  PermanentId: '234',
                  ParentId: '123',
                  Ancestry: '123:234',
                  Type: 'ROOM',
              },
              '345': {
                  PermanentId: '345',
                  Ancestry: '345',
                  Type: 'NEIGHBORHOOD',
                  Visibility: 'Public'
              },
              '456': {
                  PermanentId: '456',
                  ParentId: '345',
                  Ancestry: '345:456',
                  Type: 'ROOM',
              }
          },
          myCharacters: {
              meta: { fetching: false, fetched: true },
              data: [
                  {
                      CharacterId: 'ABC',
                      Grants: [
                          { Resource: '123', Actions: 'View' }
                      ]
                  },
                  {
                      CharacterId: 'BCD',
                      Grants: []
                  }
              ]
          },
          charactersInPlay: {
              'ABC': {
                  CharacterId: 'ABC',
                  RoomId: '987'
              },
              'BCD': {
                  CharacterId: 'BCD',
                  RoomId: '987'
              },
          }
      }
  
      it('should return only public links when no grants', () => {
          expect(getVisibleExits({
              ...testState,
              connection: { characterId: 'BCD' }
          })).toEqual([
              {
                  Name: 'TestTwo',
                  RoomId: '456',
                  Visibility: 'Public'
              }
          ])
      })
  
      it('should return public and private links when grants exist', () => {
          expect(getVisibleExits({
              ...testState,
              connection: { characterId: 'ABC' }
          })).toEqual([
              {
                  Name: 'TestOne',
                  RoomId: '234',
                  Visibility: 'Private'
              },
              {
                  Name: 'TestTwo',
                  RoomId: '456',
                  Visibility: 'Public'
              }
          ])
      })
  
  })
  