Skip to content

Conversation

@iceiilin
Copy link
Member

@iceiilin iceiilin commented Oct 9, 2015

Added enclosure node type.

https://hwjiraprd01.corp.emc.com/browse/MAG-176

PRs in other repos for this feature:
RackHD/on-taskgraph#11
RackHD/on-tasks#26
RackHD/on-http#18

@jfrey @VulpesArtificem @benbp

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be shorter: expect(this.subject.json).to.be.true, your code is OK as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've actually gotten used to using expect(...).to.equal(true), the reason being when you do it that way mocha will actually print out the offending value on test failure, whereas expect(...).to.be.true ends up hiding the offending value, making test failures harder to assess after the fact. I wish it wasn't this way, I find the latter more readable/clean.

@yyscamper
Copy link
Contributor

+1

@benbp benbp mentioned this pull request Oct 9, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest we have this default to an empty array (see the overlapping work we did accidentally here: https://github.com/RackHD/on-core/pull/11/files). Not sure whether we want it as 'json' type or 'array' type, probably json?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When coding, I wanted to add more flexibility about its contents. But array might be enough from our design. Will change to array.

@benbp
Copy link
Contributor

benbp commented Oct 16, 2015

👍

benbp added a commit that referenced this pull request Oct 27, 2015
@benbp benbp merged commit f9f0792 into RackHD:master Oct 27, 2015
@benbp benbp deleted the feature/MAG-176-generate-enclosure branch October 27, 2015 17:51
dalebremner pushed a commit to dalebremner/on-core that referenced this pull request Dec 1, 2017
added example tools and git submodules
dalebremner pushed a commit to dalebremner/on-core that referenced this pull request Dec 1, 2017
dalebremner pushed a commit to dalebremner/on-core that referenced this pull request Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants