Skip to content

Instantly share code, notes, and snippets.

View vjustov's full-sized avatar

Viktor Justo V. vjustov

View GitHub Profile
import React from 'react'
import { render, fireEvent } from 'react-testing-library';
import { Provider, useDispatch } from 'react-redux';
import { Formik, Form } from 'formik';
it('doesnt register effects', () => {
let index = 0
const dummyStore = {
dispatch: (action) => {
index = 1
@vjustov
vjustov / keybase.md
Last active February 21, 2019 12:22

Keybase proof

I hereby claim:

  • I am vjustov on github.
  • I am vjustov (https://keybase.io/vjustov) on keybase.
  • I have a public key ASAlUnP_IIpjNmJHKQC_6PnrQboT74TqkEZYwuiX2Dk4Pwo

To claim this, I am signing this object:

# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
#
# Installation
#
# ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit
#
# Based on
#
# http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/
@vjustov
vjustov / gist:e2e6331422f0153c9426
Created July 14, 2014 18:34
DevDo interview task
def print_list prefix, list
list and list.each_with_index do | element, index |
full_prefix = "#{prefix}.#{index}"
element.is_a?(Array) ? print_list(full_prefix, element) : puts("#{full_prefix}: #{element}")
end
end