@@ -13,7 +13,7 @@ function createField(schema = {}, model = null, disabled = false, options) {
1313 [ el , vm , field ] = createVueField ( "fieldPikaday" , schema , model , disabled , options ) ;
1414}
1515
16- describe ( "fieldPikaday.vue" , ( ) => {
16+ describe . only ( "fieldPikaday.vue" , ( ) => {
1717
1818 describe ( "check template" , ( ) => {
1919 let schema = {
@@ -41,7 +41,7 @@ describe("fieldPikaday.vue", () => {
4141
4242 it ( "should contain the value" , ( done ) => {
4343 vm . $nextTick ( ( ) => {
44- expect ( input . value ) . to . be . equal ( moment ( 1462799081231 ) . format ( "YYYY-MM-DD HH:mm:ss " ) ) ;
44+ expect ( input . value ) . to . be . equal ( moment ( 1462799081231 ) . format ( "YYYY-MM-DD" ) ) ;
4545 done ( ) ;
4646 } ) ;
4747 } ) ;
@@ -57,18 +57,18 @@ describe("fieldPikaday.vue", () => {
5757 it ( "input value should be the model value after changed" , ( done ) => {
5858 model . event = 1234567890123 ;
5959 vm . $nextTick ( ( ) => {
60- expect ( input . value ) . to . be . equal ( moment ( 1234567890123 ) . format ( "YYYY-MM-DD HH:mm:ss " ) ) ;
60+ expect ( input . value ) . to . be . equal ( moment ( 1234567890123 ) . format ( "YYYY-MM-DD" ) ) ;
6161 done ( ) ;
6262 } ) ;
6363
6464 } ) ;
6565
6666 it ( "model value should be the input value if changed" , ( done ) => {
67- input . value = moment ( 1420194153000 ) . format ( "YYYY-MM-DD HH:mm:ss " ) ;
67+ input . value = moment ( 1420153200000 ) . format ( "YYYY-MM-DD" ) ;
6868 trigger ( input , "input" ) ;
6969
7070 vm . $nextTick ( ( ) => {
71- expect ( model . event ) . to . be . equal ( 1420194153000 ) ;
71+ expect ( model . event ) . to . be . equal ( 1420153200000 ) ;
7272 done ( ) ;
7373 } ) ;
7474
0 commit comments