Skip to content
Snippets Groups Projects
Commit fe0be774 authored by Tom Robinson's avatar Tom Robinson Committed by GitHub
Browse files

Add a clarifying comment

parent a5cffebd
No related branches found
No related tags found
No related merge requests found
......@@ -227,6 +227,8 @@ function jasmineMultipleSetupTeardown(fn) {
const handlers = { beforeAll: [], beforeEach: [], afterEach: [], afterAll: [] }
const originals = {};
// hook the global "describe" so we know if we're in an inner describe call,
// since we only want to grab the top-level setup/teardown handlers
let originalDescribe = global.describe;
let innerDescribe = false;
global.describe = (...args) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment