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.
33 lines
745 B
33 lines
745 B
7 years ago
|
'use strict'
|
||
7 years ago
|
/* global describe, it, inject, expect, beforeEach */
|
||
|
|
||
7 years ago
|
describe('chatTitle filter', function () {
|
||
7 years ago
|
beforeEach(module('myApp.filters'))
|
||
7 years ago
|
|
||
|
beforeEach(inject(function (_$filter_, ___) {
|
||
7 years ago
|
this.$filter = _$filter_
|
||
|
this._ = ___
|
||
7 years ago
|
}))
|
||
7 years ago
|
|
||
|
beforeEach(function () {
|
||
7 years ago
|
this.chatTitleFilter = this.$filter('chatTitle')
|
||
7 years ago
|
})
|
||
7 years ago
|
|
||
|
it('displays chat title deleted', function () {
|
||
7 years ago
|
var expected = this._('chat_title_deleted')
|
||
|
var actual = this.chatTitleFilter(null)
|
||
7 years ago
|
|
||
7 years ago
|
expect(actual).toEqual(expected)
|
||
|
})
|
||
7 years ago
|
|
||
|
it('displays the chat title', function () {
|
||
|
var chat = {
|
||
|
title: 'Telegraph is hot!'
|
||
7 years ago
|
}
|
||
|
var expected = chat.title
|
||
7 years ago
|
var actual = this.chatTitleFilter(chat)
|
||
7 years ago
|
|
||
7 years ago
|
expect(actual).toEqual(expected)
|
||
|
})
|
||
|
})
|