text: /* eslint-env jest */
  const { mockClient, fetchMock } = require('../mocks/client.mock')
  const Module = require('../../src/endpoints/worlds')
  
  describe('endpoints > worlds', () => {
    let endpoint
    beforeEach(() => {
      endpoint = new Module(mockClient)
      fetchMock.reset()
    })
  
    it('test /v2/worlds', async () => {
      expect(endpoint.isPaginated).toEqual(true)
      expect(endpoint.isBulk).toEqual(true)
      expect(endpoint.supportsBulkAll).toEqual(true)
      expect(endpoint.isLocalized).toEqual(true)
      expect(endpoint.isAuthenticated).toEqual(false)
      expect(endpoint.cacheTime).not.toEqual(undefined)
      expect(endpoint.url).toEqual('/v2/worlds')
  
      fetchMock.addResponse([{ id: 1001, name: 'Anvil Rock' }])
      let content = await endpoint.many([1001])
      expect(content[0].name).toEqual('Anvil Rock')
    })
  })
  