-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cut v1.3 #122
Conversation
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>
|
||
describe('Configure defaults', () => { | ||
it('should print success message if config set successfully', () => { | ||
return weather.setLocation({city: 'Dhaka', country: 'Bangladesh'}).should.be.fulfilled.then(res => { |
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.
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 => { |
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.
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 => { |
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.
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 => { |
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.
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 => { |
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.
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 => { |
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.
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 => { |
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.
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 => { |
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.
Too many nested callbacks (4). Maximum allowed is 3 max-nested-callbacks
Merge into master in preparation for release.