Chatwoot/app/javascript/dashboard/store/modules/specs/conversationMetadata/getters.spec.js

17 lines
357 B
JavaScript
Raw Normal View History

import { getters } from '../../conversationMetadata';
describe('#getters', () => {
it('getConversationMetadata', () => {
const state = {
records: {
1: {
browser: { name: 'Chrome' },
},
},
};
expect(getters.getConversationMetadata(state)(1)).toEqual({
browser: { name: 'Chrome' },
});
});
});