This file contains 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
jest.mock('../mymodule', () => { | |
return (opts => { return opts.somecallback; }); | |
}); |
This file contains 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 React from 'react'; | |
import { Link } from 'react-router'; | |
export default class App extends React.Component { | |
render() { | |
return ( | |
<nav> | |
<ul> | |
{ | |
this.props.routes[0].childRoutes.map ( (route) => { |
This file contains 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
#!/bin/sh | |
# | |
#Run JS tests before commit | |
echo "LOCAL PRE-COMMIT HOOKS" | |
if [ -d "$HOME/.rvm/bin" ]; then | |
PATH="$HOME/.rvm/bin:$PATH" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
if [ -f ".ruby-version" ]; then | |
rvm use "$(cat .ruby-version)" |