// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {shallow} from 'enzyme'; import React from 'react'; import Preferences from '@mm-redux/constants/preferences'; import LatexCodeBlock from './latex_code_block'; describe('LatexCodeBlock', () => { const baseProps = { theme: Preferences.THEMES.denim, language: 'latex', textStyle: {}, }; test('should match snapshot', () => { const wrapper = shallow( , ); expect(wrapper.getElement()).toMatchSnapshot(); }); test('should have 2 lines', () => { const wrapper = shallow( , ); expect(wrapper.getElement()).toMatchSnapshot(); }); test('should have moreLinesText', () => { const wrapper = shallow( , ); expect(wrapper.getElement()).toMatchSnapshot(); }); });