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

29 lines (20 loc) 790 B
describe('material.core', function() { describe("detect if ng-touch module is loaded", function() { beforeEach(module('ngTouch', 'material.core')); it('should find ngTouch $swipe instance', inject(function($injector) { // This is check in core.js#L22 expect($injector.has('$swipe')).toBe(true); })); }); describe("if ng-touch module is NOT loaded", function() { beforeEach(module('material.core')); it('should find not find the ngTouch $swipe instance', inject(function($injector) { // This is check in core.js#L22 expect($injector.has('$swipe')).toBe(false); })); }); it('should shim $q.resolve', inject(function($q) { expect(angular.isFunction($q.resolve)).toBe(true); expect($q.resolve).toBe($q.when); })); });