/* eslint-env jest */ import buildIconsObject from '../build-icons-object'; const SVG_FILES = { 'icon1.svg': '\n \n \n', 'icon2.svg': '\n \n', }; function getSvg(svgFile) { return SVG_FILES[svgFile]; } test('builds object correctly', () => { expect(buildIconsObject(Object.keys(SVG_FILES), getSvg)).toMatchSnapshot(); });