-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/auth #3
Feature/auth #3
Conversation
}, | ||
"private": true, | ||
"dependencies": { | ||
"@angular/animations": "^6.1.7", | ||
"@angular/cdk": "^6.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having ^ in version number may result in different package versions installed on CI server. It's more safe to specify exact version, without any modifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, good catch, will change that :)
@@ -14,6 +15,9 @@ describe('AppComponent', () => { | |||
declarations: [ | |||
AppComponent | |||
], | |||
providers: [ | |||
{ provide: AuthService, useValue: () => { } } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes more sense to useValue: { }. () => { } is a factory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, right. TBH during the time I was fixing UT I put on my list TODO: mock Auth Service ;)
No description provided.