mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
test(core): enable no-floating-promises rule for tests (#11915)
Sometimes, missing `await` in the test code can cause timing issues, leading to test failures. This PR enables the `no-floating-promises` rule for the test code to ensure that such errors do not occur.
This commit is contained in:
@@ -11,7 +11,7 @@ import { addSampleNotes } from './doc-generator.js';
|
||||
import { createPainterWorker, setupEditor } from './setup.js';
|
||||
|
||||
async function init() {
|
||||
setupEditor('edgeless', [
|
||||
await setupEditor('edgeless', [
|
||||
ParagraphLayoutHandlerExtension,
|
||||
ListLayoutHandlerExtension,
|
||||
ImageLayoutHandlerExtension,
|
||||
@@ -29,4 +29,4 @@ async function init() {
|
||||
window.renderer = renderer;
|
||||
}
|
||||
|
||||
init();
|
||||
await init();
|
||||
|
||||
Reference in New Issue
Block a user