jenesius-vue-form
Advanced tools
Comparing version 3.0.7 to 3.0.8
@@ -12,4 +12,4 @@ declare const STORE: IStore; | ||
cleanValue: any; | ||
dateMask: string; | ||
date: { | ||
dateMask: string; | ||
months: string[]; | ||
@@ -16,0 +16,0 @@ daysWeek: string[]; |
{ | ||
"name": "jenesius-vue-form", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Heavy form system for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/jenesius-vue-form.cjs.js", |
import {DOMWrapper, mount, VueWrapper} from "@vue/test-utils"; | ||
import EmptyApp from "../components/EmptyApp.vue"; | ||
import {defineComponent} from "vue"; | ||
import {InputField, Form} from "../../../src/index"; | ||
import {InputField, Form, config} from "../../../src/index"; | ||
import STORE from "../../../src/config/store"; | ||
@@ -176,2 +176,18 @@ | ||
test("Если установлена конфигурация маски - показывать её", async () => { | ||
config({ | ||
dateMask: "DD/MM" | ||
}) | ||
const app = defaultMount(defineDateComponent({})) | ||
const input = app.find('input'); | ||
const form = (app.vm as any).form as Form | ||
const today = new Date() | ||
form.setValues({ | ||
created: today.toISOString() | ||
}) | ||
await app.vm.$nextTick(); | ||
await app.vm.$nextTick(); | ||
await app.vm.$nextTick(); | ||
expect(input.element.value).toBe(`${today.getDate()}/${String(today.getMonth() + 1).padStart(2, '0')}`) | ||
}) | ||
}) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
13809
2945996