MCPcopy
hub / github.com/marmelab/ng-admin / getField

Function getField

src/javascripts/test/unit/Crud/misc/EntryFormatterSpec.js:13–21  ·  view source on GitHub ↗
(literal)

Source from the content-addressed store, hash-verified

11};
12
13function getField(literal) {
14 var field = {};
15 Object.keys(literal).forEach(function (attr) {
16 field[attr] = function () {
17 return literal[attr];
18 };
19 });
20 return field;
21}
22
23describe("Service: EntryFormatter.getFormatter formatter", function () {
24 'use strict';

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected