MCPcopy Create free account
hub / github.com/EsperoTech/yaade / ensureIsNotNested

Function ensureIsNotNested

client/src/utils/jasmine/jasmine.js:1776–1781  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

1774 };
1775
1776 function ensureIsNotNested(method) {
1777 const runable = runner.currentRunable();
1778 if (runable !== null && runable !== undefined) {
1779 throw new Error("'" + method + "' should only be used in 'describe' function");
1780 }
1781 }
1782
1783 this.describe = function (description, definitionFn) {
1784 ensureIsNotNested('describe');

Callers 1

EnvFunction · 0.70

Calls 1

currentRunableMethod · 0.45

Tested by

no test coverage detected