-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix(stark-ui): cellFormatter is now called even when the rawValue is undefined #1468
fix(stark-ui): cellFormatter is now called even when the rawValue is undefined #1468
Conversation
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.
Small remarks
component.ngAfterViewInit(); | ||
}); | ||
|
||
it("should display 'ONE' instead of '1' when id == '1'", () => { |
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.
Let's put in the test description only the functionality tested instead of the specific details... for example: should display the formatted value in the cell instead of the raw value
expect(rowIdElements[0].innerText).toEqual("one"); | ||
}); | ||
|
||
it("should display '-null-' when 'description' is undefined", () => { |
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.
same remark about the test description, what about: should display the formatted value in the cell even if the raw value is undefined
?
expect(rowIdElements[1].innerText).toEqual("-null-"); | ||
}); | ||
|
||
it("should NOT display anything when 'test' is undefined and no 'cellFormatter' property is set for the column", () => { |
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.
same remark about the test description, what about: should NOT display anything when the raw value is undefined and there is no 'cellFormatter' defined for the column
?
cae23cb
to
397bec8
Compare
PR updated. @christophercr @nicanac Could you please check it ? 😊 |
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.
LGTM
…matter is not called ISSUES CLOSED: #1465
397bec8
to
815ac6c
Compare
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.
LGTM, 👍
ISSUES CLOSED: #1465
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #1465
What is the new behavior?
cellFormatter
is now triggered even if therawValue
is undefined.Does this PR introduce a breaking change?
Other information