(act: Resolvable, allActs: Action[] | string[])
| 177 | } |
| 178 | |
| 179 | export function ambiguousActionNameMsg(act: Resolvable, allActs: Action[] | string[]) { |
| 180 | const allActNames = |
| 181 | typeof allActs[0] === "string" |
| 182 | ? allActs |
| 183 | : (allActs as Array<Table | Operation | Assertion>).map( |
| 184 | r => `${r.getTarget().schema}.${r.getTarget().name}` |
| 185 | ); |
| 186 | return `Ambiguous Action name: ${stringifyResolvable( |
| 187 | act |
| 188 | )}. Did you mean one of: ${allActNames.join(", ")}.`; |
| 189 | } |
| 190 | |
| 191 | /** |
| 192 | * @deprecated use ActionBuilder.applySessionToTarget() instead. |
no test coverage detected