Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: TT-262 refactor code based on PR reviews
  • Loading branch information
kevinjlope committed Jun 11, 2021
commit ef05e06b591d946851cbfe10a70463a065c7988f
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ testem.log
keys.ts
src/environments/keys.ts
debug.log
/.vscode
*.vscode

# System Files
.DS_Store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,9 @@ describe('MonthPickerComponent', () => {
expect(component.selectDate).toHaveBeenCalledWith(monthSelect, yearSelect);
});

it('monthEnable set disable true in the buttoms futures', () => {
it('monthEnable sets disabled to true on futures months', () => {
const monthFuture = component.monthCurrent + 1;
expect(component.monthEnable(monthFuture)).toBeTrue();
});

it('monthEnable set disable false in the buttoms presents and past', () => {
const monthFuture = component.monthCurrent;
expect(component.monthEnable(monthFuture)).toBeFalse();
});

});