test(ionRefresher): fix unit test

This commit is contained in:
Andy Joslin
2014-03-27 05:57:57 -06:00
parent 5c893ab81a
commit 75290a3ea0

View File

@@ -92,11 +92,11 @@ describe('ionRefresher directive', function() {
});
it('should allow pullingText', function() {
var el = setup('pulling-text="{{2+2}} <b>some</b> text"');
expect(el[0].querySelector('.pulling-text').innerHTML).toBe('4 <b>some</b> text');
expect(el[0].querySelector('.text-pulling').innerHTML).toBe('4 <b>some</b> text');
});
it('should allow refreshingText', function() {
var el = setup('refreshing-text="{{3+2}} <b>text</b>"');
expect(el[0].querySelector('.refreshing-text').innerHTML).toBe('5 <b>text</b>');
expect(el[0].querySelector('.text-refreshing').innerHTML).toBe('5 <b>text</b>');
});
});