I'm working with a TypeScript constructor in a Security.ts class that looks like this:
constructor(readonly idOptions: IdentityOptions) {
console.log('constructor called');
this.lock = new Auth0Lock(idOptions.clientId, idOptions.domain, {
auth: {
redirectUrl: idOptions.redirectUrl,
responseType: 'code',
params: {
scope: 'openid'
}
},
initialScreen: idOptions.initialScreen,
allowedConnections: ['Username-Password-Authentication']
});
}
Now, for my unit tests on Security.ts (using Jasmine), I need to fully mock the Auth0Lock object instead of using the real one. How can I achieve this by utilizing Jasmine spies?