Skip to content

Conversation

@vonvick
Copy link
Owner

@vonvick vonvick commented Jan 19, 2017

What does this PR do?

This PR resolves all feedback received from the facilitator during checkpoint defense

Description of Task to be completed?

Refactor the isQuestion() , toCurrency() and fromCurrency() methods

How should this be manually tested?

By comparing the methods before and after the implementations

Any background context you want to provide?

Not applicable

What are the relevant pivotal tracker stories?

Not applicable

Screenshots (if appropriate)

Not applicable

Questions:

Not applicable

src/string.js Outdated
toCurrency() {
if (!Number(this)) {
return 'This is not a Number';
if (/[^\d.]/.test(this) || /\..*\./.test(this)) {

Choose a reason for hiding this comment

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

Trailing spaces not allowed no-trailing-spaces

Copy link
Owner Author

Choose a reason for hiding this comment

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

fixed

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 0c19a25 on checkpoint-feedback into c9c46fe on develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c34be3f on checkpoint-feedback into c9c46fe on develop.

/* eslint no-unused-expressions: 0 */
const mocha = require('mocha');
const expect = require('chai').expect;
const chai = require('chai');

Choose a reason for hiding this comment

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

Unable to resolve path to module 'chai' import/no-unresolved

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 3803114 on checkpoint-feedback into c9c46fe on develop.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f77b175 on checkpoint-feedback into c9c46fe on develop.

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.

4 participants