Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
530 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: ddc5cfd4-640f-4fb3-9f85-667de1e4a345
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: setupTest
  5. # key: stest
  6. # --
  7. import React from 'react'
  8. import renderer from 'react-test-renderer'
  9. import { ${1:${TM_FILENAME_BASE}} } from '../${1:${TM_FILENAME_BASE}}'
  10. describe('<${1:${TM_FILENAME_BASE}} />', () => {
  11. const defaultProps = {}
  12. const wrapper = renderer.create(<${1:${TM_FILENAME_BASE}} {...defaultProps} />)
  13. test('render', () => {
  14. expect(wrapper).toMatchSnapshot()
  15. })
  16. })