Skip to content

Instantly share code, notes, and snippets.

@nachozt
Last active June 19, 2020 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nachozt/2e933b2ce08443f6a85d87083afb9e13 to your computer and use it in GitHub Desktop.
Save nachozt/2e933b2ce08443f6a85d87083afb9e13 to your computer and use it in GitHub Desktop.
unit test sample medium
@public
function create_payment(args) {
validateArgs(args);
findUser();
OtherModule.validatePayment();
createPayment();
return payment;
}
@private
function validateArgs(args) {}
function findUser() {}
function createPayment() {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment