mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-12 08:58:00 +00:00
Restructure Sass files and folders for proper application Sass development
This commit is contained in:
committed by
Francis Lachapelle
parent
a87bbc2de5
commit
5217c0ac64
@@ -0,0 +1,28 @@
|
||||
describe('mdSubheader', function() {
|
||||
var $mdStickyMock,
|
||||
basicHtml = '<md-subheader>Hello world!</md-header>';
|
||||
|
||||
beforeEach(module('material.components.subheader', function($provide) {
|
||||
$mdStickyMock = function() {
|
||||
$mdStickyMock.args = Array.prototype.slice.call(arguments);
|
||||
};
|
||||
$provide.value('$mdSticky', $mdStickyMock);
|
||||
}));
|
||||
|
||||
|
||||
it('should preserve content', inject(function($compile, $rootScope) {
|
||||
var $scope = $rootScope.$new();
|
||||
$scope.to = 'world';
|
||||
var $el = $compile('<div><md-subheader>Hello {{ to }}!</md-subheader></div>')($scope);
|
||||
$scope.$digest();
|
||||
var $subHeader = $el.children();
|
||||
expect($subHeader.text()).toEqual('Hello world!');
|
||||
}));
|
||||
|
||||
it('should implement $mdSticky', inject(function($compile, $rootScope) {
|
||||
var scope = $rootScope.$new();
|
||||
var $el = $compile(basicHtml)(scope);
|
||||
expect($mdStickyMock.args[0]).toBe(scope);
|
||||
}));
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user