UNPKG

create-instantsearch-app

Version:

⚡️ Build InstantSearch apps at the speed of thought

16 lines (13 loc) 499 B
const getAnswersDefaultValues = require('../getAnswersDefaultValues'); test('without attributesToDisplay in configuration', () => { const { attributesToDisplay } = getAnswersDefaultValues({}, {}, undefined); expect(attributesToDisplay).toBeUndefined(); }); test('with attributesToDisplay in configuration', () => { const { attributesToDisplay } = getAnswersDefaultValues( {}, { attributesToDisplay: ['name'] }, undefined ); expect(attributesToDisplay).toEqual(['name']); });