From 7cd3c428c4d4be15d06e02d076e9e0a5005c5274 Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Wed, 3 Jul 2024 14:40:00 -0700 Subject: [PATCH] Add next tick wait before checking for removed properties --- test/dom/as.mocha.js | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/test/dom/as.mocha.js b/test/dom/as.mocha.js index 5dd46d66..faba190f 100644 --- a/test/dom/as.mocha.js +++ b/test/dom/as.mocha.js @@ -34,7 +34,11 @@ describe('as', function() { expect(fragment).html('
'); }); - it('HTML element `as-object` property', function() { + async function nextTick() { + return new Promise((resolve) => process.nextTick(resolve)); + } + + it('HTML element `as-object` property', async function() { const { app } = runner.createHarness(); app.views.register('Body', '