all files / keystone/lib/list/ map.js

100% Statements 5/5
50% Branches 1/2
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12      31× 31×   31×      
/**
 * Maps a built-in field (e.g. name) to a specific path
 */
function map (field, path) {
	Eif (path) {
		this.mappings[field] = path;
	}
	return this.mappings[field];
}
 
module.exports = map;