summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_view/ui/no_mails_available_pane.spec.js
blob: 868efc76e27a86c75323201bed59730f5f3cc967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
describeComponent('mail_view/ui/no_mails_available_pane', function () {
    'use strict';

    describe('after initialization', function () {
        it('renders template', function () {
            this.setupComponent({tag: 'inbox'});
            expect(this.$node.html()).toMatch('<div class="text">NO EMAILS IN \'INBOX\'.</div>');
        });

        it('show different message for search with no results', function () {
            this.setupComponent({tag: 'all', forSearch: 'search'});
            expect(this.$node.html()).toMatch('<div class="text">NO RESULTS FOR: \'SEARCH\'.</div>');
        });
    });
});