(literal)
| 11 | }; |
| 12 | |
| 13 | function 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 | |
| 23 | describe("Service: EntryFormatter.getFormatter formatter", function () { |
| 24 | 'use strict'; |