(factId, params, path)
| 117 | describe('custom alamanc', () => { |
| 118 | class CapitalAlmanac extends Almanac { |
| 119 | factValue (factId, params, path) { |
| 120 | return super.factValue(factId, params, path).then(value => { |
| 121 | if (typeof value === 'string') { |
| 122 | return value.toUpperCase() |
| 123 | } |
| 124 | return value |
| 125 | }) |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | it('returns the capitalized value when using the CapitalAlamanc', () => { |
no outgoing calls
no test coverage detected