Skip to content

Conversation

@ibgreen
Copy link
Collaborator

@ibgreen ibgreen commented Apr 17, 2025

Closes #

Background

Change List

  • View class
  • View tests
  • View docs
  • What's new

@coveralls
Copy link

coveralls commented Apr 17, 2025

Coverage Status

coverage: 91.49% (+0.001%) from 91.489%
when pulling 5891e2f on ib/clone-views
into b04187d on master.

t.is(clone.id, 'cloned-view', 'clone id is overridden');
t.is(clone.props.zoom, 5, 'clone prop zoom is overridden');
t.is(clone.props.latitude, view.props.latitude, 'other props are preserved');
t.is(clone.props.longitude, view.props.longitude, 'other props are preserved');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we also test that cloning a view should produce an identical view with matching matrices?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can we also test that cloning a view should produce an identical view with matching matrices?

I considered it, but seemed to require a bit more work than I would like, I feel that adding the equal test should be pretty solid.

@ibgreen ibgreen merged commit 00465d0 into master Apr 22, 2025
4 checks passed
@ibgreen ibgreen deleted the ib/clone-views branch April 22, 2025 03:12
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.

5 participants