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

Refactor field_variable_tests to use dev-tools #4417

Merged
merged 2 commits into from Nov 6, 2020

Conversation

moniika
Copy link
Contributor

@moniika moniika commented Oct 29, 2020

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

Part of #4260

Proposed Changes

  • Refactors FieldVariable tests to use dev-tools helpers
  • Modifies handling of invalid values passed to FieldVariable constructor (for truthy non-string values like number or true)

Reason for Changes

  • Expands coverage
  • Better handling of invalid values (to use default value rather than causing error later down the line.

Test Coverage

Ran mocha tests (using local version of dev-tools).

Additional Information

Depends on change google/blockly-samples#428

Old tests:
image

New tests:
image

core/field_variable.js Outdated Show resolved Hide resolved
@moniika
Copy link
Contributor Author

moniika commented Nov 3, 2020

I'll be waiting for the next Blockly-Samples release before merging this PR.

@moniika moniika merged commit 8361268 into google:develop Nov 6, 2020
@moniika moniika deleted the field-var-tests branch November 6, 2020 19:35
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.

None yet

2 participants