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

Make getProjectSettings async #152

Merged
merged 1 commit into from Apr 27, 2018
Merged

Make getProjectSettings async #152

merged 1 commit into from Apr 27, 2018

Conversation

campionfellin
Copy link
Collaborator

Just for the functions we have tests for so far...

Also, put in a quick exit out of clasp run just in case anyone tries it.

Signed-off-by: campionfellin campionfellin@gmail.com

Works on #146 but doesn't quite finish it...

  • npm run test succeeds.
  • npm run lint succeeds.
  • Appropriate changes to README are included in PR.

Just for the functions we have tests for so far...

Signed-off-by: campionfellin <campionfellin@gmail.com>
@coveralls
Copy link

coveralls commented Apr 27, 2018

Pull Request Test Coverage Report for Build 131

  • 0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
  • 224 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 11.357%

Files with Coverage Reduction New Missed Lines %
index.js 224 6.67%
Totals Coverage Status
Change from base Build 126: -0.3%
Covered Lines: 116
Relevant Lines: 761

💛 - Coveralls

Copy link
Contributor

@grant grant left a comment

Choose a reason for hiding this comment

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

Awesome stuff!

logError(error, ERROR.CREATE);
});
} catch (err) { // no scriptId (because project doesn't exist)
//console.log(err);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a missing err handler.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I wasn't sure a great way around this, because the promise should reject (because there shouldn't be a project settings file). So I just catch that and we can figure out a better way to do it.

@grant grant merged commit e4366b8 into google:master Apr 27, 2018
@campionfellin campionfellin deleted the async branch April 27, 2018 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants