UNPKG

homebrew-services

Version:
14 lines (10 loc) 455 B
const fixtures = require('../../fixtures'); const { convertToMap } = require('./utils'); describe('list/convertToMap()', () => { it('should convert a list of services to a map', () => expect(convertToMap(fixtures['services list'].data)).toMatchSnapshot()); it('should handle empty results', () => expect(convertToMap('')).toEqual(new Map())); it('should handle undefined inputs', () => expect(convertToMap()).toEqual(new Map())); });