mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 17:11:07 +08:00
Revert "DEV: prevents csrf token to leak state between tests (#7746)"
This reverts commit b29d63a52d4e1ae5e0ab1127c47663dc79e953a9.
This commit is contained in:
@ -16,7 +16,6 @@ import { resetDecorators } from "discourse/widgets/widget";
|
||||
import { resetDecorators as resetPostCookedDecorators } from "discourse/widgets/post-cooked";
|
||||
import { resetCache as resetOneboxCache } from "pretty-text/oneboxer";
|
||||
import { resetCustomPostMessageCallbacks } from "discourse/controllers/topic";
|
||||
import { resetCsrfCallbacks } from "discourse/initializers/csrf-token";
|
||||
|
||||
export function currentUser() {
|
||||
return Discourse.User.create(
|
||||
@ -129,7 +128,6 @@ export function acceptance(name, options) {
|
||||
resetPostCookedDecorators();
|
||||
resetOneboxCache();
|
||||
resetCustomPostMessageCallbacks();
|
||||
resetCsrfCallbacks();
|
||||
Discourse.reset();
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user