blob: bbea2f559bc0a5859d4afabf5e7038acdbb4ca73 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 | describeComponent('mail_view/ui/attachment', function () {
  'use strict';
  describe('attachment', function () {
    beforeEach(function () {
        Pixelated.mockBloodhound();
        this.setupComponent();
    });
    it('render attachment button if feature enabled', function () {
        expect(this.$node.html()).toMatch('<i class="fa fa-paperclip fa-2x"></i>');
    });
    xit('uploads attachment on click', function () {
        var fileUploads = spyOn($, 'fileupload');
        this.$node.click();
        expect(fileUploads).toHaveBeenCalled();
    });
  });
});
 |