Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Added sticky settings functionality to flyout #53

Merged
merged 7 commits into from
Jun 14, 2019

Conversation

Blackbaud-TrevorBurch
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jun 14, 2019

Codecov Report

Merging #53 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #53   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines         452    474   +22     
  Branches       74     78    +4     
=====================================
+ Hits          452    474   +22
Impacted Files Coverage Δ
src/app/public/modules/flyout/flyout.module.ts 100% <ø> (ø) ⬆️
src/app/public/modules/flyout/flyout.component.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d7f0a3e...a24ea0a. Read the comment docs.

{
flyoutWidth: this.flyoutWidth
}
).subscribe(
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a takeUntil().

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a take(1)

fixture.detectChanges();
tick();
spyOn(SkyFlyoutComponent.prototype, 'onMouseMove').and.callThrough();
spyOn(SkyFlyoutComponent.prototype, 'onHandleRelease').and.callThrough();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you spying on these two mouse events? I don't see you utilizing them anywhere...

Copy link
Member Author

Choose a reason for hiding this comment

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

There were two tests like this due to copy pasta. I've fixed them both.

Copy link
Contributor

@Blackbaud-AlexKingman Blackbaud-AlexKingman left a comment

Choose a reason for hiding this comment

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

Two things. Also, what should happen if sticky settings returns a width that is outside of the max/min widths?

@Blackbaud-TrevorBurch
Copy link
Member Author

@Blackbaud-AlexKingman ready for you again. I changed how min and max detection happens so that we no longer check for that until after we grab the sticky settings. There was also some bugginess with timing with the sticky settings - these changes fix that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants