Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
Browse files Browse the repository at this point in the history
…-fix'
  • Loading branch information
kibanamachine committed Nov 12, 2024
1 parent 6e85833 commit 6b645f9
Showing 1 changed file with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ describe('bootstrapRenderer', () => {
});

it('calls getThemeTag with the values from the UiSettingsClient (true/dark) when the UserSettingsService is not provided', async () => {
uiSettingsClient.get.mockImplementation(getClientGetMockImplementation({
darkMode: true,
}));
uiSettingsClient.get.mockImplementation(
getClientGetMockImplementation({
darkMode: true,
})
);
const request = httpServerMock.createKibanaRequest();

await renderer({
Expand All @@ -128,7 +130,7 @@ describe('bootstrapRenderer', () => {
});

it('calls getThemeTag with the values from the UiSettingsClient (false/light) when the UserSettingsService is not provided', async () => {
uiSettingsClient.get.mockImplementation(getClientGetMockImplementation({}))
uiSettingsClient.get.mockImplementation(getClientGetMockImplementation({}));

const request = httpServerMock.createKibanaRequest();

Expand Down Expand Up @@ -231,9 +233,11 @@ describe('bootstrapRenderer', () => {
userSettingsService,
});

uiSettingsClient.get.mockImplementation(getClientGetMockImplementation({
darkMode: true,
}));
uiSettingsClient.get.mockImplementation(
getClientGetMockImplementation({
darkMode: true,
})
);
const request = httpServerMock.createKibanaRequest();

await renderer({
Expand Down Expand Up @@ -271,9 +275,11 @@ describe('bootstrapRenderer', () => {
});

it('calls getThemeTag with the correct parameters', async () => {
uiSettingsClient.get.mockImplementation(getClientGetMockImplementation({
darkMode: true,
}));
uiSettingsClient.get.mockImplementation(
getClientGetMockImplementation({
darkMode: true,
})
);

const request = httpServerMock.createKibanaRequest();

Expand Down

0 comments on commit 6b645f9

Please sign in to comment.