MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / ensureIsNotNested

Function ensureIsNotNested

ui/plugins/ui/jasmine/jasmine.js:1737–1742  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

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")

Callers 1

EnvFunction · 0.85

Calls 1

currentRunableMethod · 0.80

Tested by

no test coverage detected