improve variable name in test (#124849)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Vadim Kibana 2022-02-11 13:48:36 +01:00 committed by GitHub
parent 8baf9b8551
commit 3c47a05f7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,10 +11,10 @@ import type { DashboardAppLocator } from '../../../../../../src/plugins/dashboar
describe('DashboardService', () => {
const mockSavedObjectClient = savedObjectsServiceMock.createStartContract().client;
const dashboardUrlGenerator = {
const dashboardLocator = {
getUrl: jest.fn(),
} as unknown as DashboardAppLocator;
const dashboardService = dashboardServiceProvider(mockSavedObjectClient, dashboardUrlGenerator);
const dashboardService = dashboardServiceProvider(mockSavedObjectClient, dashboardLocator);
test('should fetch dashboard', () => {
// act
@ -30,7 +30,7 @@ describe('DashboardService', () => {
test('should generate edit url to the dashboard', () => {
dashboardService.getDashboardEditUrl('test-id');
expect(dashboardUrlGenerator.getUrl).toHaveBeenCalledWith({
expect(dashboardLocator.getUrl).toHaveBeenCalledWith({
dashboardId: 'test-id',
useHash: false,
viewMode: 'edit',