add isMobile service and tests

This commit is contained in:
Manuel Araoz 2014-06-19 15:07:20 -03:00
commit 0347cb5bda
4 changed files with 57 additions and 24 deletions

View file

@ -214,4 +214,18 @@ describe("Unit: Controllers", function() {
});
describe('Send Controller', function() {
var sendCtrl;
beforeEach(inject(function($controller, $rootScope) {
scope = $rootScope.$new();
sendCtrl = $controller('SendController', {
$scope: scope,
});
}));
it('should have a SendController', function() {
expect(scope.isMobile).not.to.equal(null);
});
});
});