Skip to content

Instantly share code, notes, and snippets.

@dougrchamberlain
Created December 15, 2017 17:41
Show Gist options
  • Save dougrchamberlain/48df278223175e65db4a263b3c39a955 to your computer and use it in GitHub Desktop.
Save dougrchamberlain/48df278223175e65db4a263b3c39a955 to your computer and use it in GitHub Desktop.
function makeTestData(args){
let newObject = {}
if(args.type === 'public'){
newObject.public = dosomeThing();
}
newObject.name = CreateRandomName();
}
isGoodData(){
//bunch of code
}
let testData;
beforeEach(() =>{
testData = makeTestData({type: 'public'})
}
it("should",() =>{
expect(testData).to.equal(isGoodData());
}
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment