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

Cut v1.3 #122

Merged
merged 13 commits into from
Feb 2, 2018
Merged

Cut v1.3 #122

merged 13 commits into from
Feb 2, 2018

Conversation

riyadhalnur
Copy link
Owner

Merge into master in preparation for release.

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Project already has an editorconfig file. Most IDEs support it.

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Update outdated pakcages to the latst stable versions.

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
- Function to support setting defaults - city and country
- Rewrote weather retrieve function. Handles most functionality in scope.

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
- Cleaned up code to be more readable. Sould only handle display and passing through commands to main handler
- Added support for flags and better help text

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Show flags to display version and help text itself in the help message.

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
- Update test cases to reflect change in API
- Add more test cases

Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
Signed-off-by: Riyadh Al Nur <riyadhalnur@verticalaxisbd.com>
@riyadhalnur riyadhalnur added this to the v1.3 milestone Feb 2, 2018
@riyadhalnur riyadhalnur self-assigned this Feb 2, 2018

describe('Configure defaults', () => {
it('should print success message if config set successfully', () => {
return weather.setLocation({city: 'Dhaka', country: 'Bangladesh'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

});

it('should get the weather for custom location', () => {
return weather.getWeather({scale: 'C', s: 'C', city: 'Kuala Lumpur', country: 'Malaysia'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

});

it('should get the weather for default location and Fahrenheit scale', () => {
return weather.getWeather({scale: 'F', s: 'F'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

});

it('should get the weather for default location', () => {
return weather.getWeather({scale: 'C', s: 'C'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks


describe('Configure defaults', () => {
it('should print success message if config set successfully', () => {
return weather.setLocation({city: 'Dhaka', country: 'Bangladesh'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

});

it('should get the weather for custom location', () => {
return weather.getWeather({scale: 'C', s: 'C', city: 'Kuala Lumpur', country: 'Malaysia'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

});

it('should get the weather for default location and Fahrenheit scale', () => {
return weather.getWeather({scale: 'F', s: 'F'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

});

it('should get the weather for default location', () => {
return weather.getWeather({scale: 'C', s: 'C'}).should.be.fulfilled.then(res => {

Choose a reason for hiding this comment

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

Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks

@coveralls
Copy link

Coverage Status

Coverage increased (+12.3%) to 95.652% when pulling c917499 on 1.3 into d315f3d on master.

3 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+12.3%) to 95.652% when pulling c917499 on 1.3 into d315f3d on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+12.3%) to 95.652% when pulling c917499 on 1.3 into d315f3d on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+12.3%) to 95.652% when pulling c917499 on 1.3 into d315f3d on master.

@riyadhalnur riyadhalnur merged commit 7121c31 into master Feb 2, 2018
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