-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
Pull Request Test Coverage Report for Build 1287
💛 - Coveralls |
src/components/BareMetalHosts/fixtures/BaremetalHostStatus.fixture.js
Outdated
Show resolved
Hide resolved
src/components/BareMetalHosts/tests/BaremetalHostStatus.test.js
Outdated
Show resolved
Hide resolved
2c806de
to
ef164bc
Compare
it('renders a generic success message', () => { | ||
const component = shallow(testBaremetalHostStatusSuccess()); | ||
expect(component).toMatchSnapshot(); | ||
it('renders the correct subcomponent', () => { |
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.
it should be inside the forEach for easier debugging + please also include the fixture index in it
message + optionally the status
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.
Good point, thanks. I made the message more descriptive by adding the status but omitted the index because that would make the message ugly and wouldn't add to its meaning.
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.
indexes add uniqueness to the test case. This will break once you check for the same statuses in multiple fixtures (different conditions - same status)
Adding 3 new provisioning states: - match profile - provisioning error - power management error
ef164bc
to
f81dff7
Compare
Adding 3 new provisioning states: