Cleanup tests (& fix ws.connect()) (#5493)

* Cleanup tests (& fix ws.connect())

* Await mock

* Adjust sc connect ordering
This commit is contained in:
Jaco
2023-02-17 11:57:34 +02:00
committed by GitHub
parent 361a77580e
commit 40810f2fdb
16 changed files with 125 additions and 128 deletions
-5
View File
@@ -1,16 +1,11 @@
// Copyright 2017-2023 @polkadot/api-derive authors & contributors
// SPDX-License-Identifier: Apache-2.0
import { jest } from '@jest/globals';
import { of, timer } from 'rxjs';
import { drr } from '.';
describe('drr', (): void => {
beforeEach((): void => {
jest.setTimeout(15000);
});
it('should not fire twice the same value', (done): void => {
let count = 0;