Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created May 30, 2014 20:00
Show Gist options
  • Select an option

  • Save cmcdevitt/719b71ed0cec3028469f to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/719b71ed0cec3028469f to your computer and use it in GitHub Desktop.
A test for my ibrary of helper functions
//Used for testing
cmUnitTest();
function cmUnitTest(){
var cm = new CMHelper();
gs.log("This week: " + cm.getStartOfWeek());
gs.log("Last Week: " + cm.getSevenDaysAgo(cm.getStartOfWeek()));
gs.log("Group;ISD Management: " + cm.getSysId('ISD Management','sys_user_group'));//Two arguments
gs.log("User;P28758: " + cm.getSysId('p28758','sys_user','user_name'));//Three argumenets
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment