-
Notifications
You must be signed in to change notification settings - Fork 51
[MPQEditor] Implement 'validateMPQName' #1516
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
Conversation
53357da
to
84d8f1e
Compare
const mpqName: string = "model-test-validateMPQName.mpq.json"; | ||
|
||
const retValue = MPQEditorProvider.validateMPQName(dirPath, mpqName); | ||
assert(retValue === undefined); |
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.
assert(retValue === undefined); | |
assert(retValue === undefined); |
You can use assert.isUndefined(retvalue)
From clean code's view, better to read the human language. :-D
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.
Ah. Thank you!
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.
fixed.
Thanks! It's even better to understand the code with the unit test. |
eaaab7a
to
69525fd
Compare
97fa678
to
b06c973
Compare
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.
LGTM, Thanks :-D
b06c973
to
2725b54
Compare
2725b54
to
bb2094a
Compare
This commit implements 'validateMPQName' and adds tests for it. ONE-vscode-DCO-1.0-Signed-off-by: s.malakhov <[email protected]>
bb2094a
to
dd260dc
Compare
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.
LGTM thank you!
This commit implements 'validateMPQName' and adds tests for it.
Fresh draft: #1511
Previous draft: #1505
Related: #1491
ONE-vscode-DCO-1.0-Signed-off-by: s.malakhov [email protected]