test: await setTimeout (#4643)
This commit is contained in:
1 parent
5e9eeaddbd
commit
b3dc4dce9c
1 file changed
+1
-1
@@ -186,7 +186,7 @@ describe('y-provider', () => {
|
|||||||
|
|
||||||
provider.disconnect();
|
provider.disconnect();
|
||||||
subdoc.getText('text').insert(0, 'test-subdoc-value');
|
subdoc.getText('text').insert(0, 'test-subdoc-value');
|
||||||
setTimeout();
|
await setTimeout();
|
||||||
expect(remoteSubdoc.getText('text').toJSON()).toBe('');
|
expect(remoteSubdoc.getText('text').toJSON()).toBe('');
|
||||||
|
|
||||||
expect(provider.connected).toBe(false);
|
expect(provider.connected).toBe(false);
|
||||||
|
|||||||
Reference in new issue
Block a user