Skip to content
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

remove duplication from normalize entity name #4154

Merged
merged 3 commits into from May 23, 2015
Merged

remove duplication from normalize entity name #4154

merged 3 commits into from May 23, 2015

Conversation

tyleriguchi
Copy link
Contributor

Let me know if this looks alright, first time contributing. In reference to #3730

'use strict';
var SilentError = require('../errors/silent');

module.exports = function(entityName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add an explicit test for this new extracted module?

basically for the two branches:

  • test that it throws, with the correct error type and message
  • test that it returns entityName

@trabus
Copy link
Contributor

trabus commented May 23, 2015

first time contributing

@tyleriguchi nice work! Let me know if you need any help with the tests.

@tyleriguchi
Copy link
Contributor Author

Added tests to confirm it throws an error and message, and that it returns an entity name

stefanpenner added a commit that referenced this pull request May 23, 2015
remove duplication from normalize entity name
@stefanpenner stefanpenner merged commit e120525 into ember-cli:master May 23, 2015
@stefanpenner
Copy link
Contributor

Thank you kindly

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.

None yet

3 participants