Skip to content

Commit 1af86c1

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[Freestyler] Fix test failing locally
Bug: none Change-Id: Icff2b78d9802848d72df5612c5031c2cb6ba0412 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5934528 Reviewed-by: Ergün Erdoğmuş <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]> Auto-Submit: Nikolay Vitkov <[email protected]>
1 parent a182924 commit 1af86c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

front_end/panels/freestyler/FreestylerPanel.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ describeWithEnvironment('FreestylerPanel', () => {
175175
it('should allow logging if configured', () => {
176176
// @ts-expect-error global test variable
177177
setFreestylerServerSideLoggingEnabled(true);
178+
const stub = getGetHostConfigStub({
179+
aidaAvailability: {
180+
disallowLogging: false,
181+
},
182+
});
178183

179184
const aidaClient = getTestAidaClient();
180185
new Freestyler.FreestylerPanel(mockView, {
@@ -189,6 +194,7 @@ describeWithEnvironment('FreestylerPanel', () => {
189194
sinon.assert.match(aidaClient.registerClientEvent.firstCall.firstArg, sinon.match({
190195
disable_user_content_logging: false,
191196
}));
197+
stub.restore();
192198
});
193199

194200
it('should send POSITIVE rating to aida client when the user clicks on positive rating', () => {

0 commit comments

Comments
 (0)