mock-protractor.js
function getModuleConfig(mocks) {
	// Functions cannot be transferred directly
	// Convert to string
	for (var i = 0; i < mocks.length; ++i) {
		var mock = mocks[i];
		if (typeof mock[0] === 'function') {
			mock[0] = mock[0].toString();
		}
	}
	return "angular.module('vinkaga.mockBackend').constant('vinkaga.mockBackend.mock', " + JSON.stringify(mocks) + ');';
}
function getModuleConfig(mocks) {
	// Functions cannot be transferred directly
	// Convert to string
	for (var i = 0; i < mocks.length; ++i) {
		var mock = mocks[i];
		if (typeof mock[0] === 'function') {
			mock[0] = mock[0].toString();
		}
	}
	return "angular.module('vinkaga.mockBackend').constant('vinkaga.mockBackend.mock', " + JSON.stringify(mocks) + ');';
}
function getModuleConfig ( mocks ) { // Functions cannot be transferred directly // Convert to string for ( var i = 0 ; i < mocks . length ; ++ i ) { var mock = mocks [ i ] ; if ( typeof mock [ 0 ] === 'function' ) { mock [ 0 ] = mock [ 0 ] . toString ( ) ; } } return "angular.module('vinkaga.mockBackend').constant('vinkaga.mockBackend.mock', " + JSON . stringify ( mocks ) + ');' ; }
Create module mock config code
@param mocks
@returns {string}
Create module mock config code