101108: Angular 15 upgrade - test build & run fixes

This commit is contained in:
Kristof De Langhe
2023-04-12 17:47:40 +02:00
parent 84f1fcbb35
commit 4ed6ccebff
3 changed files with 5 additions and 12 deletions

View File

@@ -72,7 +72,7 @@ export function createPaginatedList<T>(objects?: T[]): PaginatedList<T> {
* @param prop The property/function to spy on
*/
export function spyOnExported<T>(target: T, prop: keyof T): jasmine.Spy {
const spy = jasmine.createSpy(`${prop}Spy`);
const spy = jasmine.createSpy(`${String(prop)}Spy`);
spyOnProperty(target, prop).and.returnValue(spy);
return spy;
}