@@ -0,0 +1,1016 @@
+describe('Service: $cordovaCamera', function() %7B%0A%0A  var $cordovaVibration;%0A%0A  beforeEach(module('ngCordova.plugins.vibration'));%0A%0A  beforeEach(inject(function (_$cordovaVibration_) %7B%0A    $cordovaVibration = _$cordovaVibration_;%0A%0A    navigator.notification = jasmine.createSpyObj('notification', %5B'vibrate', 'vibrateWithPattern', 'cancelVibration'%5D);%0A  %7D));%0A%0A  it('should call navigator%5C's notification.vibrate method', function() %7B%0A    $cordovaVibration.vibrate(10);%0A    expect(navigator.notification.vibrate).toHaveBeenCalledWith(10);%0A  %7D);%0A%0A  it('should call navigator%5C's notification.vibrateWithPattern method', function() %7B%0A    var pattern = %5B1, 5, 8%5D;%0A    $cordovaVibration.vibrateWithPattern(pattern, true);%0A    expect(navigator.notification.vibrateWithPattern).toHaveBeenCalledWith(pattern, true);%0A  %7D);%0A%0A  it('should call navigator%5C's notification.cancelVibration method', function() %7B%0A    $cordovaVibration.cancelVibration();%0A    expect(navigator.notification.cancelVibration).toHaveBeenCalled();%0A  %7D);%0A%7D);%0A

add unit test