Skip to content

Instantly share code, notes, and snippets.

@elaich
elaich / Test.tsx
Last active May 28, 2019 09:27
A TestCase: when we allow props of a component to pass other components.
const props = {
component: <Text text="Something" />,
}
it('Gives the right property', () => {
const wrapper = render(props);
expect(wrapper.props()).toMatchObject(props); // This fails with no visual differences between the expected and received.
});
@elaich
elaich / .vimrc
Last active December 11, 2019 00:54
rc.lua
" Plugins
call plug#begin('~/.vim/plugged')
Plug 'pangloss/vim-javascript'
Plug 'jelera/vim-javascript-syntax', {'autoload':{'filetypes':['javascript']}}
Plug 'w0ng/vim-hybrid'
Plug 'scrooloose/nerdtree'