(method)
| 1735 | } |
| 1736 | |
| 1737 | function ensureIsNotNested(method) { |
| 1738 | const runable = runner.currentRunable() |
| 1739 | if (runable !== null && runable !== undefined) { |
| 1740 | throw new Error("'" + method + "' should only be used in 'describe' function") |
| 1741 | } |
| 1742 | } |
| 1743 | |
| 1744 | this.describe = function(description, definitionFn) { |
| 1745 | ensureIsNotNested("describe") |