You might not need this beforeEach() function, because this same function is defined in outer scope.

Otherwise, there needs to be an afterEach() function to destroyMockEditor() (like you do above).