angular-unit-test-helper
Version:
Helper functions to help write unit tests in Angular using mocks and spies
13 lines • 415 B
JavaScript
export function getAllFunctions(prototype, props) {
if (!props) {
props = Reflect.ownKeys(prototype);
}
return props.filter((e) => typeof prototype[e] === 'function');
}
export function getAllProperties(prototype, props) {
if (!props) {
props = Reflect.ownKeys(prototype);
}
return props.filter((e) => typeof prototype[e] !== 'function');
}
//# sourceMappingURL=getAll.js.map