Skip to content

Instantly share code, notes, and snippets.

@ciwolsey
Last active May 21, 2016 00:52
Show Gist options
  • Save ciwolsey/9865c49f2718b5c41ffe9e6e34b5de28 to your computer and use it in GitHub Desktop.
Save ciwolsey/9865c49f2718b5c41ffe9e6e34b5de28 to your computer and use it in GitHub Desktop.
export default {
isAllowed() {
return false;
}
};
import auth from './auth'
export default {
findCar() {
if (auth.isAllowed()) return "A car";
}
};
import Car from './model';
// How do i stub isAllowed() from here before doing tests?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment