mockIt = function(errorMessage) {
		var defer = $q.defer();
		if (this.throwsError) {
			defer.reject(errorMessage);
		} else {
			defer.resolve();
		}
		return defer.promise;
	}
@ngdoc service
@name ngCordovaMocks.cordovaFile

@description
A service for testing interaction with device directories and files
in an app build with ngCordova.