mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
improve variable name in test (#124849)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
8baf9b8551
commit
3c47a05f7a
1 changed files with 3 additions and 3 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue