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

Add failing test case illustrating migration bug #10055

Closed
wants to merge 1 commit into from

Conversation

samanpwbb
Copy link
Contributor

Launch Checklist

  • briefly describe the changes in this PR
  • include before/after visuals or gifs if this PR includes visual changes
  • write tests for all new functionality
  • document any changes to public APIs
  • post benchmark scores
  • manually test the debug page
  • tagged @mapbox/map-design-team @mapbox/static-apis if this PR includes style spec API or visual changes
  • tagged @mapbox/gl-native if this PR includes shader changes or needs a native port
  • apply changelog label ('bug', 'feature', 'docs', etc) or use the label 'skip changelog'
  • add an entry inside this element for inclusion in the mapbox-gl-js changelog: <changelog></changelog>

}
}]
}, spec.latest.$version);
t.deepEqual(validate.parsed(migrated, v8), []);
Copy link
Contributor Author

@samanpwbb samanpwbb Oct 28, 2020

Choose a reason for hiding this comment

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

I would expect no errors after migrating the (valid) style above. Instead, this expression is generated:

[ 'match', [ 'get', 'type' ], 'park', 'some-icon', undefined ]

And I get the error: "layers[0].layout.icon-image[4]: 'undefined' value invalid. Use null instead."

@samanpwbb samanpwbb closed this Oct 28, 2020
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.

1 participant