Fix frontend tests and linting errors
This commit is contained in:
@@ -23,7 +23,7 @@ export function getPlaceholder(field) {
|
|||||||
*/
|
*/
|
||||||
export function getFieldProps(field) {
|
export function getFieldProps(field) {
|
||||||
// Создаем копию, исключая служебные поля, которые мы передаем отдельно или не хотим передавать
|
// Создаем копию, исключая служебные поля, которые мы передаем отдельно или не хотим передавать
|
||||||
const { $formkit, id, ...rest } = field;
|
const { $formkit: _$formkit, id: _id, ...rest } = field;
|
||||||
|
|
||||||
const props = { ...rest };
|
const props = { ...rest };
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ function cloneBlock(block) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function showDrawer(blockIndex) {
|
function showDrawer(blockIndex) {
|
||||||
if (currentBlock) {
|
if (currentBlock.value) {
|
||||||
drawerBlockIndex.value = blockIndex;
|
drawerBlockIndex.value = blockIndex;
|
||||||
isDrawerSettingsVisible.value = true;
|
isDrawerSettingsVisible.value = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {definePreset} from "@primeuix/themes";
|
|||||||
import Tooltip from 'primevue/tooltip';
|
import Tooltip from 'primevue/tooltip';
|
||||||
import ConfirmationService from 'primevue/confirmationservice';
|
import ConfirmationService from 'primevue/confirmationservice';
|
||||||
import { plugin, defaultConfig } from '@formkit/vue';
|
import { plugin, defaultConfig } from '@formkit/vue';
|
||||||
import { ru } from '@formkit/i18n';
|
|
||||||
import config from './formkit.config.js'
|
import config from './formkit.config.js'
|
||||||
|
|
||||||
const MyPreset = definePreset(Aura, {
|
const MyPreset = definePreset(Aura, {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {defineStore} from "pinia";
|
import {defineStore} from "pinia";
|
||||||
import {apiGet, apiPost} from "@/utils/http.js";
|
import {apiPost} from "@/utils/http.js";
|
||||||
|
|
||||||
export const useStatsStore = defineStore('stats', {
|
export const useStatsStore = defineStore('stats', {
|
||||||
state: () => ({
|
state: () => ({
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ import {computed} from "vue";
|
|||||||
const settings = useSettingsStore();
|
const settings = useSettingsStore();
|
||||||
|
|
||||||
const ymCheckUrl = computed(() => {
|
const ymCheckUrl = computed(() => {
|
||||||
const url = settings.items.telegram.mini_app_url.replace(/\#\/$/, '');
|
const url = settings.items.telegram.mini_app_url.replace(/#\/$/, '');
|
||||||
return `${url}?_ym_status-check=104849385&_ym_lang=ru`;
|
return `${url}?_ym_status-check=104849385&_ym_lang=ru`;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ describe('CartStore', () => {
|
|||||||
|
|
||||||
await store.applyCoupon();
|
await store.applyCoupon();
|
||||||
|
|
||||||
expect(store.error_warning).toBe('Invalid coupon');
|
expect(store.error_coupon).toBe('Invalid coupon');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user