Blame view

frontend/web/js/raty-2.7.0/spec/cancelhint_spec.js 435 Bytes
c7f222e2   Artem   first
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  describe('#cancelHint', function() {
    beforeEach(function() {
      $.fn.raty.defaults.path = '../lib/images';
  
      this.el = Helper.create('#el');
    });
  
    afterEach(function() {
      Helper.clear();
    });
  
    it ('changes the cancel hint', function() {
      // given
  
      // when
      this.el.raty({ cancel: true, cancelHint: 'double' });
  
      // then
      expect(this.el.children('.raty-cancel')).toHaveAttr('title', 'double');
    });
  });