Skip to content

[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

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

stamalakhov
Copy link
Contributor

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]

@stamalakhov stamalakhov requested review from seanshpark and dayo09 April 3, 2023 08:48
@stamalakhov stamalakhov self-assigned this Apr 3, 2023
@stamalakhov stamalakhov force-pushed the manual_MPQ_defautMPQ_br branch from 53357da to 84d8f1e Compare April 3, 2023 08:55
const mpqName: string = "model-test-validateMPQName.mpq.json";

const retValue = MPQEditorProvider.validateMPQName(dirPath, mpqName);
assert(retValue === undefined);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
assert(retValue === undefined);
assert(retValue === undefined);

You can use assert.isUndefined(retvalue)
From clean code's view, better to read the human language. :-D

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah. Thank you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed.

@dayo09
Copy link
Contributor

dayo09 commented Apr 3, 2023

Thanks! It's even better to understand the code with the unit test.

@stamalakhov stamalakhov force-pushed the manual_MPQ_defautMPQ_br branch from eaaab7a to 69525fd Compare April 3, 2023 09:41
@stamalakhov stamalakhov force-pushed the manual_MPQ_defautMPQ_br branch 2 times, most recently from 97fa678 to b06c973 Compare April 3, 2023 10:38
dayo09
dayo09 previously approved these changes Apr 3, 2023
Copy link
Contributor

@dayo09 dayo09 left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks :-D

This commit implements 'validateMPQName' and adds tests for it.

ONE-vscode-DCO-1.0-Signed-off-by: s.malakhov <[email protected]>
@stamalakhov stamalakhov force-pushed the manual_MPQ_defautMPQ_br branch from bb2094a to dd260dc Compare April 4, 2023 09:50
Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

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

LGTM thank you!

@stamalakhov stamalakhov requested a review from dayo09 April 4, 2023 10:20
@seanshpark
Copy link
Contributor

landing this PR without confirm from @dayo09 as @dayo09 is absent this week for edu. course.

@seanshpark seanshpark merged commit 27d7fa2 into Samsung:main Apr 5, 2023
@stamalakhov stamalakhov deleted the manual_MPQ_defautMPQ_br branch April 5, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants