UNPKG

angular-material-npfixed

Version:

The Angular Material project is an implementation of Material Design in Angular.js. This project provides a set of reusable, well-tested, and accessible Material Design UI components. Angular Material is supported internally at Google by the Angular.js, M

30 lines (24 loc) 848 B
describe('md-grid-list', function() { // Need to mock the $mdMedia service as otherwise tests would fail on minified source through PhantomJS2 var $mdMediaMock = function() {}; $mdMediaMock.getQuery = function() { return { addListener: angular.noop, removeListener: angular.noop }; }; $mdMediaMock.getResponsiveAttribute = function() { return []; }; $mdMediaMock.watchResponsiveAttributes = function () { return angular.noop; }; beforeEach(module(function($provide) { $provide.value('$mdMedia', $mdMediaMock); })); beforeEach(module('material.components.gridList')); it('should have `._md` class indicator', inject(function($compile, $rootScope) { var element = $compile('<md-grid-list></md-grid-list>')($rootScope.$new()); expect(element.hasClass('_md')).toBe(true); })); });