diff --git a/docs/rules/no-hooks-from-ancestor-modules.md b/docs/rules/no-hooks-from-ancestor-modules.md index 4f400d31..4e870c55 100644 --- a/docs/rules/no-hooks-from-ancestor-modules.md +++ b/docs/rules/no-hooks-from-ancestor-modules.md @@ -33,6 +33,12 @@ The following patterns are not warnings: QUnit.module("example module", function(hooks) { hooks.beforeEach(function() {}); }); + +QUnit.module("outer module", function() { + QUnit.module("inner module", function(hooks) { + hooks.beforeEach(function() {}); + }); +}); ``` ## When Not To Use It