(word, language, { include })
| 183 | } |
| 184 | |
| 185 | async function findDefinitions (word, language, { include }) { |
| 186 | let dictionaryData = await fetchFromSource(word, language); |
| 187 | |
| 188 | if (_.isEmpty(dictionaryData)) { throw new errors.UnexpectedError(); } |
| 189 | |
| 190 | return transform(word, language, dictionaryData, { include }); |
| 191 | } |
| 192 | |
| 193 | module.exports = { |
| 194 | findDefinitions, |
nothing calls this directly
no test coverage detected