Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: scopemanager initialization in test #179

fix: instantiate ScopeManager in beforeEach()

  • Loading branch information...
danielkhan committed Aug 8, 2019
commit 35774217ec0f561f2d6117fa874b7d24ca29b5ba
@@ -20,9 +20,13 @@ import { AsyncHooksScopeManager } from '../../src';
describe('AsyncHooksScopeManager', () => {
let scopeManager: AsyncHooksScopeManager;

beforeEach(() => {
scopeManager = new AsyncHooksScopeManager();
scopeManager.enable();
});

afterEach(() => {
scopeManager.disable();
scopeManager.enable();
});

describe('.enable()', () => {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.