Telegram Web, preconfigured for usage in I2P.
http://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
745 B
32 lines
745 B
'use strict' |
|
/* global describe, it, inject, expect, beforeEach */ |
|
|
|
describe('chatTitle filter', function () { |
|
beforeEach(module('myApp.filters')) |
|
|
|
beforeEach(inject(function (_$filter_, ___) { |
|
this.$filter = _$filter_ |
|
this._ = ___ |
|
})) |
|
|
|
beforeEach(function () { |
|
this.chatTitleFilter = this.$filter('chatTitle') |
|
}) |
|
|
|
it('displays chat title deleted', function () { |
|
var expected = this._('chat_title_deleted') |
|
var actual = this.chatTitleFilter(null) |
|
|
|
expect(actual).toEqual(expected) |
|
}) |
|
|
|
it('displays the chat title', function () { |
|
var chat = { |
|
title: 'Telegraph is hot!' |
|
} |
|
var expected = chat.title |
|
var actual = this.chatTitleFilter(chat) |
|
|
|
expect(actual).toEqual(expected) |
|
}) |
|
})
|
|
|