Skip to content

Instantly share code, notes, and snippets.

@tomasperezv
Created November 13, 2016 12:28
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 tomasperezv/a094a33902f156c2cf432ec040f8a9e7 to your computer and use it in GitHub Desktop.
Save tomasperezv/a094a33902f156c2cf432ec040f8a9e7 to your computer and use it in GitHub Desktop.
/**
* Access to the spy map to assert accesses over properties and methods.
*/
getPropertyRegister(propertyName: string): Object|null {
const register = this._spyMap.get(propertyName);
return typeof register !== 'undefined' ? register : null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment