Mock buffet core

This commit is contained in:
mfrachet 2021-04-01 15:02:02 +02:00
parent a25edc7f91
commit 521ee1a136

View File

@ -6,6 +6,11 @@ jest.mock('@buffetjs/styles', () => ({
Tooltip: () => null,
}));
jest.mock('@buffetjs/core', () => ({
Padded: props => <div {...props} />,
Text: props => <p {...props} />,
}));
describe('LocaleListCell', () => {
it('returns the default locale first, then the others sorted alphabetically', () => {
const locales = [