Created
November 13, 2016 12:12
-
-
Save tomasperezv/edc9563035b36b535a981c7ae3b96e64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Uses a map for keeping track of access and set operations. | |
*/ | |
_registerAccess(propertyName: string, isDefined: boolean): void { | |
let register = { | |
count: 0, | |
called: false, | |
isDefined | |
}; | |
register.count++; | |
register.called = true; | |
this._spyMap.set(propertyName, register); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment