-
Notifications
You must be signed in to change notification settings - Fork 1
fix: TT-262 disable buttons futures in time entries and disable input date futures #697
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
Changes from 1 commit
3d930d5
c9423a8
5943353
ef05e06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…-date futures in reports, test of method monthEnable
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ testem.log | |
keys.ts | ||
src/environments/keys.ts | ||
debug.log | ||
/.vscode | ||
|
||
# System Files | ||
.DS_Store | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ import { MonthPickerComponent } from './month-picker.component'; | |
describe('MonthPickerComponent', () => { | ||
let component: MonthPickerComponent; | ||
let fixture: ComponentFixture<MonthPickerComponent>; | ||
|
||
beforeEach(waitForAsync(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ MonthPickerComponent ] | ||
|
@@ -69,4 +68,14 @@ describe('MonthPickerComponent', () => { | |
expect(component.selectDate).toHaveBeenCalledWith(monthSelect, yearSelect); | ||
}); | ||
|
||
it('monthEnable set disable true in the buttoms futures', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. replace this name: |
||
const monthFuture = component.monthCurrent + 1; | ||
expect(component.monthEnable(monthFuture)).toBeTrue(); | ||
}); | ||
|
||
it('monthEnable set disable false in the buttoms presents and past', () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this description is not very clear: I Understand this. I Think is no necessary disable the past months only future months |
||
const monthFuture = component.monthCurrent; | ||
expect(component.monthEnable(monthFuture)).toBeFalse(); | ||
}); | ||
|
||
}); |
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.
In this part you can use
*.vscode