(viewName)
| 407 | }; |
| 408 | |
| 409 | export function parseViewName(viewName) { |
| 410 | const pair = viewName.split('-'); |
| 411 | if (pair.length !== 2) { |
| 412 | throw new Error('Invalid view name.'); |
| 413 | } |
| 414 | return {type: pair[0], id: pair[1]}; |
| 415 | } |
no outgoing calls
no test coverage detected