Skip to content

Instantly share code, notes, and snippets.

@Olegas
Created September 13, 2019 07:15
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 Olegas/54990d6073af7339fb8affb3b47cb953 to your computer and use it in GitHub Desktop.
Save Olegas/54990d6073af7339fb8affb3b47cb953 to your computer and use it in GitHub Desktop.
describe('Some case', () => {
before(() => {
// Mock BL here
declareMock('Object.Method').staticResponse(new RecordSet(....));
declareMock('Object.Complicated').withResolver((args) => {
// if arg1 > 10 -> result1
// if arg1 <= 10 -> result2
});
});
it('Test something', () => {
// load page
// click here
// click there
// check values
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment