-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Extract "open-editor" utility #5670
Conversation
This allows us to mock the method for testing purposes
This allows us to mock the method for testing purposes
var Promise = require('../ext/promise'); | ||
var spawn = require('child_process').spawn; | ||
|
||
var openEditor = function(file) { |
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.
Typically do function foo() form
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.
changed
Looks good |
@homu r+ |
📌 Commit caabaaa has been approved by |
Extract "open-editor" utility This PR extracts an "open-editor" utility from the "edit-file-diff" code and adds tests for it.
💔 Test failed - status |
@homu retry |
Extract "open-editor" utility This PR extracts an "open-editor" utility from the "edit-file-diff" code and adds tests for it.
☀️ Test successful - status |
This PR extracts an "open-editor" utility from the "edit-file-diff" code and adds tests for it.