[#64040] Effacer du code commenter

This commit is contained in:
Hugo Soucy 2015-01-22 14:39:36 -05:00
parent 0b691a7cb4
commit fed09010cf
2 changed files with 0 additions and 62 deletions

View File

@ -23,22 +23,3 @@ var SFLfront = (function() {
mquery: mquery
};
})();
// //var mqDesktop = 'only screen and (min-width: 60em)';
// //var mqTablet = 'only screen and (min-width: 30.063em) and (max-width: 59.938em)';
// //var mqPhone = 'only screen and (min-width: 20em) and (max-width: 30em)';
// $(function () {
// // ON LOAD
// console.log($('li'), '!!!!');
// $('a').on('click', function(e) {
// e.preventDefault();
// console.log($('!!!'));
// });
// // ON RESIZE
// });
// })(jQuery, window, document);

View File

@ -1,43 +0,0 @@
'use strict';
describe('Topbar module', function () {
var $compile,
$rootScope,
$controller,
$httpBackend;
beforeEach(module('adagios.topbar'));
beforeEach(inject(function (_$compile_, _$rootScope_, _$controller_, _$httpBackend_) {
$compile = _$compile_;
$rootScope = _$rootScope_;
$controller = _$controller_;
$httpBackend = _$httpBackend_;
$httpBackend.expectGET('topbar/topbar.html').respond('<a>{{ notifications }}</a>');
}));
describe('TopBarCtrl', function () {
it('should be defined', function () {
var scope = $rootScope.$new(),
topbar = $controller('TopBarCtrl', { $scope : scope });
expect(topbar).toBeDefined();
});
});
describe('Topbar directive', function () {
it('should insert the number of warnings', function () {
var element = $compile('<topbar></topbar>')($rootScope);
$httpBackend.flush();
$rootScope.notifications = 44;
$rootScope.$digest();
expect(element.text()).toBe('44');
});
});
});