Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 20a4c2f

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(sticky): tests relaid on private classes
- Tests was using `md-sticky-clone` instead of `_md-sticky-clone` Closes #7307
1 parent 78ccef6 commit 20a4c2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/sticky/sticky.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('$mdSticky service', function() {
2626
} else {
2727
expect(contentEl.children().length).toBe(2);
2828

29-
var stickyClone = contentEl[0].getElementsByClassName('md-sticky-clone')[0];
29+
var stickyClone = contentEl[0].getElementsByClassName('_md-sticky-clone')[0];
3030
expect(stickyClone).toBeTruthy();
3131

3232
expect(angular.element(stickyClone).scope()).toBe(scope);
@@ -68,7 +68,7 @@ describe('$mdSticky service', function() {
6868
} else {
6969
expect(contentEl.children().length).toBe(2);
7070

71-
var stickyClone = contentEl[0].getElementsByClassName('md-sticky-clone')[0];
71+
var stickyClone = contentEl[0].getElementsByClassName('_md-sticky-clone')[0];
7272
expect(stickyClone).toBeTruthy();
7373

7474
expect(angular.element(stickyClone).scope()).toBe(cloneScope);

0 commit comments

Comments
 (0)