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.
34 lines
1.2 KiB
34 lines
1.2 KiB
8 years ago
|
'use strict'
|
||
8 years ago
|
/* global describe, it, inject, expect, beforeEach */
|
||
|
|
||
8 years ago
|
describe('myLangFooter directive', function () {
|
||
8 years ago
|
var $compile, $rootScope
|
||
8 years ago
|
|
||
8 years ago
|
beforeEach(module('ui.bootstrap'))
|
||
|
beforeEach(module('myApp.templates'))
|
||
8 years ago
|
// ErrorServiceProvider in myApp.services is needed by
|
||
|
// AppLangSelectController in myApp.controllers
|
||
8 years ago
|
beforeEach(module('myApp.services'))
|
||
|
beforeEach(module('myApp.controllers'))
|
||
|
beforeEach(module('myApp.directives'))
|
||
8 years ago
|
|
||
|
beforeEach(inject(function (_$compile_, _$rootScope_) {
|
||
8 years ago
|
$compile = _$compile_
|
||
|
$rootScope = _$rootScope_
|
||
|
}))
|
||
8 years ago
|
|
||
|
it('compiles a my-lang-footer attribute', function () {
|
||
8 years ago
|
var compiledElement = $compile('<div my-lang-footer></div>')($rootScope)
|
||
|
$rootScope.$digest() // Fire watchers
|
||
|
expect(compiledElement.html()).toContain('footer_lang_link')
|
||
|
expect(compiledElement.html()).toContain('AppLangSelectController')
|
||
|
})
|
||
8 years ago
|
|
||
|
it('compiles a my-lang-footer element', function () {
|
||
8 years ago
|
var compiledElement = $compile('<my-lang-footer></my-lang-footer>')($rootScope)
|
||
|
$rootScope.$digest() // Fire watchers
|
||
|
expect(compiledElement.html()).toContain('footer_lang_link')
|
||
|
expect(compiledElement.html()).toContain('AppLangSelectController')
|
||
|
})
|
||
|
})
|