Skip to content

Commit

Permalink
WIP adding spec to isSticky resize event
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Apr 17, 2020
1 parent ef3355c commit 959b35f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ describe('WvrFooterComponent', () => {
.toBeFalse();
});

it('should positionSelf when window is resized', () => {
const spyOnResize = spyOn(component, 'positionSelf');
window.dispatchEvent(new Event('resize'));
expect(spyOnResize).toHaveBeenCalled();
});

});
4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<title>Weaver Comonents</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/x-icon" href="assets/favicon.ico">
<style>
[wvr-hide-content] {
display: none;
Expand Down Expand Up @@ -54,4 +54,4 @@
</wvr-footer>
</body>

</html>
</html>

0 comments on commit 959b35f

Please sign in to comment.