Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acnormun committed Oct 25, 2024
1 parent a58ba65 commit a7fc18f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setupTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ beforeEach(() => {
});

config.global.plugins = [i18n];
config.mocks = {
config.global.mocks = {
$t: (msg) => msg,
};
2 changes: 1 addition & 1 deletion src/components/config/ecommerce/vtex/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
return this.hasConnectedCatalog && this.selectedSellers.length === 0 && this.disableVtexADS;
},
appConfig() {
return this.configuredApps.find((item) => item.uuid === this.appUuid)?.config;
return this.configuredApps?.find((item) => item.uuid === this.appUuid)?.config;
},
},
async mounted() {
Expand Down
2 changes: 1 addition & 1 deletion src/tests/views/__snapshots__/OtherApps.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

exports[`OtherApps > matches snapshot 1`] = `
"<div data-v-e28c1cb5="" class="container">
<div data-v-e28c1cb5="" class="flows-iframe"><img data-v-e28c1cb5="" class="logo" src="/src/assets/svgs/LogoWeniAnimada4.svg" alt=""></div><iframe data-v-e28c1cb5="" class="flows-iframe" src="https://flows-staging.weni.ai/weni/null/authenticate?next=/org/home/?flows_config_hide=configs" allow="clipboard-read; clipboard-write;" title="" style="border: 0px; display: none;"></iframe>
<div data-v-e28c1cb5="" class="flows-iframe"><img data-v-e28c1cb5="" class="logo" src="/src/assets/svgs/LogoWeniAnimada4.svg" alt=""></div><iframe data-v-e28c1cb5="" class="flows-iframe" src="undefined/weni/null/authenticate?next=/org/home/?flows_config_hide=configs" allow="clipboard-read; clipboard-write;" title="" style="border: 0px; display: none;"></iframe>
</div>"
`;

0 comments on commit a7fc18f

Please sign in to comment.