raty-js
Version:
Raty - A Star Rating Plugin
25 lines (19 loc) • 515 B
JavaScript
describe('#targetText', function() {
beforeEach(function() {
$.raty.path = '../lib/images';
$('body').append('<div id="element"></div>');
$('body').append('<div id="hint"></div>');
});
afterEach(function() {
$('#element').remove();
$('#hint').remove();
});
it ('set target with none value', function() {
// given
var self = $('#element');
// when
self.raty({ target: '#hint', targetText: 'none' });
// then
expect($('#hint')).toHaveHtml('none');
});
});