mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: fix type errors in tests (#63270)
* fix any's in tests * fix more any's in tests * more test type fixes * fixing any's in tests part 3 * more test type fixes * fixing test any's p5 * some tidy up * fix template_srv
This commit is contained in:
@@ -100,7 +100,7 @@ describe('AngularLocationWrapper', () => {
|
||||
|
||||
it('should copy object', function () {
|
||||
locationService.push('/path/b');
|
||||
const obj: Record<string, any> = { one: '1', two: true, three: null };
|
||||
const obj: Record<string, unknown> = { one: '1', two: true, three: null };
|
||||
wrapper.search(obj);
|
||||
expect(obj).toEqual({ one: '1', two: true, three: null });
|
||||
obj.one = 'changed';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
jest.mock('app/core/core', () => ({}));
|
||||
jest.mock('app/core/config', () => {
|
||||
return {
|
||||
...(jest.requireActual('app/core/config') as unknown as object),
|
||||
...jest.requireActual('app/core/config'),
|
||||
bootData: {
|
||||
user: {},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user