This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {shallow} from 'enzyme'; | |
import React from 'react'; | |
describe('Components', () => { | |
describe(${COMPONENT_NAME}, () => { | |
it('should render itself [smoke test]', () => { | |
const props = {}; | |
const wrapper = shallow(<${COMPONENT_NAME} {...props} />); | |
expect(wrapper).toMatchSnapshot(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Node.js v10.3.0+ | |
* | |
* 1. npm i file2html-ooxml | |
* 2. Place test-file.docx file in the same folder with this script | |
*/ | |
const fs = require('fs'); | |
const file2html = require('file2html'); | |
const OOXMLReader = require('file2html-ooxml').default; |