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.

47 lines
1.1 KiB

'use strict'
/* global describe, it, inject, expect, beforeEach */
describe('AppWelcomeController', function () {
beforeEach(module('myApp.controllers'))
beforeEach(function () {
this.ChangelogNotifyService = {
checkUpdate: function () {}
}
this.LayoutSwitchService = {
start: function () {}
}
this.MtpApiManager = {
getUserID: function () {
return {
then: function () {}
}
}
}
inject(function (_$controller_, _$rootScope_, _$location_) {
this.$controller = _$controller_
this.$rootScope = _$rootScope_
this.$location = _$location_
this.$scope = _$rootScope_.$new()
this.$controller('AppWelcomeController', {
$scope: this.$scope,
$location: this.$location,
MtpApiManager: this.MtpApiManager,
ErrorService: this.ErrorService,
ChangelogNotifyService: this.ChangelogNotifyService,
LayoutSwitchService: this.LayoutSwitchService
})
})
})
// https://stackoverflow.com/a/36460924
it('executes a dummy spec', function (done) {
expect(true).toBe(true)
done()
})
})