-
Notifications
You must be signed in to change notification settings - Fork 60
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
feat: Replace @oclif/command
to @oclif/core
library
#553
base: drop-support-node
Are you sure you want to change the base?
Conversation
fs.unlinkSync(downloadedFilePath); | ||
/* eslint-enable no-sync */ | ||
assert.ok(downloadContent.equals(expectedContent)); | ||
let expectedMessage = getDownloadProgressBar(295191); | ||
let expectedMessage = getDownloadProgressBar(testFileStat.size); |
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.
Changing line endings from CLRF
to LF
for the epic-poem.txt
fixes this test for me locally without your changes. Could that be the issue? Maybe the repo was cloned with windows line endings?
Anyway, I think your approach is better as it should work regardless of the line endings, but we should somehow explain why it's done this way as it's not obvious from the code (either by extracting some parts to a named function or leaving a comment at least)
Pull Request Test Coverage Report for Build 12183734596Details
💛 - Coveralls |
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.
Great job! Mostly comments about the cleanup of unused vars I see that you did it in some places.
"eslint-plugin-unicorn": "^5.0.0", | ||
"generate-license-file": "^3.6.0", |
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.
nice!
@@ -4,7 +4,7 @@ const BoxCommand = require('../../box-command'); | |||
|
|||
class MetadataTemplatesListCommand extends BoxCommand { | |||
async run() { | |||
const { flags, args } = this.parse(MetadataTemplatesListCommand); | |||
await this.parse(MetadataTemplatesListCommand); |
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.
do we need to parse it at all?
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.
After brief discussion: We're not sure if it would affect anything (if this function is only parsing input params). We decided to keep it for now as it's not that big of a deal.
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.
Just one comment
No description provided.