mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Update dependency @types/jest to v27 (#40403)
* Update dependency @types/jest to v27 * Fix type errors * Linting! Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
@@ -34,15 +34,17 @@ describe('MixedDatasource', () => {
|
||||
});
|
||||
const results: any[] = [];
|
||||
|
||||
beforeEach(async (done) => {
|
||||
const ds = await getDataSourceSrv().get('-- Mixed --');
|
||||
|
||||
from(ds.query(requestMixed)).subscribe((result) => {
|
||||
results.push(result);
|
||||
if (result.state === LoadingState.Done) {
|
||||
done();
|
||||
}
|
||||
});
|
||||
beforeEach((done) => {
|
||||
getDataSourceSrv()
|
||||
.get('-- Mixed --')
|
||||
.then((ds) => {
|
||||
from(ds.query(requestMixed)).subscribe((result) => {
|
||||
results.push(result);
|
||||
if (result.state === LoadingState.Done) {
|
||||
done();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('direct query should return results', async () => {
|
||||
@@ -68,15 +70,17 @@ describe('MixedDatasource', () => {
|
||||
});
|
||||
const results: any[] = [];
|
||||
|
||||
beforeEach(async (done) => {
|
||||
const ds = await getDataSourceSrv().get('-- Mixed --');
|
||||
|
||||
from(ds.query(requestMixed)).subscribe((result) => {
|
||||
results.push(result);
|
||||
if (results.length === 5) {
|
||||
done();
|
||||
}
|
||||
});
|
||||
beforeEach((done) => {
|
||||
getDataSourceSrv()
|
||||
.get('-- Mixed --')
|
||||
.then((ds) => {
|
||||
from(ds.query(requestMixed)).subscribe((result) => {
|
||||
results.push(result);
|
||||
if (results.length === 5) {
|
||||
done();
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('direct query should return results', async () => {
|
||||
|
||||
Reference in New Issue
Block a user