Skip to content

Commit

Permalink
chore(test): mock getBrandConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
solaris007 committed Mar 6, 2025
1 parent 52de1c3 commit 92505e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/controllers/audits.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ describe('Audits Controller', () => {
getImports: () => [],
getHandlers: () => (({ [auditType]: {} })),
getFetchConfig: () => {},
getBrandConfig: () => {},
});

const result = await auditsController.patchAuditForSite(context);
Expand Down Expand Up @@ -446,6 +447,7 @@ describe('Audits Controller', () => {
getHandlers: () => (({ [auditType]: {} })),
getImports: () => [],
getFetchConfig: () => {},
getBrandConfig: () => {},
});

const result = await auditsController.patchAuditForSite(context);
Expand Down Expand Up @@ -481,6 +483,7 @@ describe('Audits Controller', () => {
getHandlers: () => (({ [auditType]: {} })),
getImports: () => [],
getFetchConfig: () => {},
getBrandConfig: () => {},
});

const result = await auditsController.patchAuditForSite(context);
Expand Down Expand Up @@ -519,6 +522,7 @@ describe('Audits Controller', () => {
getHandlers: () => (({ [auditType]: {} })),
getImports: () => [],
getFetchConfig: () => {},
getBrandConfig: () => {},
});

const result = await auditsController.patchAuditForSite(context);
Expand Down Expand Up @@ -598,6 +602,7 @@ describe('Audits Controller', () => {
getHandlers: () => (({ [auditType]: {} })),
getImports: () => [],
getFetchConfig: () => {},
getBrandConfig: () => {},
});

const result = await auditsController.patchAuditForSite(context);
Expand Down Expand Up @@ -637,6 +642,7 @@ describe('Audits Controller', () => {
getHandlers: () => (({ [auditType]: {} })),
getImports: () => [],
getFetchConfig: () => {},
getBrandConfig: () => {},
});

const result = await auditsController.patchAuditForSite(context);
Expand Down Expand Up @@ -809,6 +815,7 @@ describe('Audits Controller', () => {
getHandlers: () => {},
getImports: () => {},
getFetchConfig: () => {},
getBrandConfig: () => {},
};

site.getConfig = () => siteConfig;
Expand Down

0 comments on commit 92505e5

Please sign in to comment.