@@ -39,18 +39,16 @@ describe("fieldDateTime.vue", function() {
3939 expect ( input ) . to . be . defined ;
4040 expect ( input . type ) . to . be . equal ( "text" ) ;
4141 expect ( input . classList . contains ( "form-control" ) ) . to . be . true ;
42- expect ( input . disabled ) . to . be . false ;
4342 } ) ;
4443
4544 it ( "should contain the value" , ( done ) => {
4645 vm . $nextTick ( ( ) => {
47- expect ( input . value ) . to . be . equal ( moment ( 1462799081231 ) . format ( "YYYY-MM-DD HH:mm:ss" ) ) ;
46+ expect ( input . value ) . to . be . equal ( moment ( 1462799081231 ) . format ( "YYYY-MM-DD HH:mm:ss" ) ) ;
4847 done ( ) ;
4948 } ) ;
5049 } ) ;
5150
5251 describe ( "check optional attribute" , ( ) => {
53- // name which attributes you want to test and that's it.
5452 let attributes = [ "autocomplete" , "disabled" , "placeholder" , "readonly" ] ;
5553
5654 attributes . forEach ( function ( name ) {
@@ -63,7 +61,7 @@ describe("fieldDateTime.vue", function() {
6361 it ( "input value should be the model value after changed" , ( done ) => {
6462 model . event = 1234567890123 ;
6563 vm . $nextTick ( ( ) => {
66- expect ( input . value ) . to . be . equal ( moment ( 1234567890123 ) . format ( "YYYY-MM-DD HH:mm:ss" ) ) ;
64+ expect ( input . value ) . to . be . equal ( moment ( 1234567890123 ) . format ( "YYYY-MM-DD HH:mm:ss" ) ) ;
6765 done ( ) ;
6866 } ) ;
6967
@@ -74,7 +72,7 @@ describe("fieldDateTime.vue", function() {
7472 trigger ( input , "input" ) ;
7573
7674 vm . $nextTick ( ( ) => {
77- expect ( model . event ) . to . be . equal ( 1420194153000 ) ;
75+ expect ( model . event ) . to . be . equal ( 1420194153000 ) ;
7876 done ( ) ;
7977 } ) ;
8078
@@ -102,7 +100,7 @@ describe("fieldDateTime.vue", function() {
102100
103101 it ( "should contain the value" , ( done ) => {
104102 vm . $nextTick ( ( ) => {
105- expect ( input . value ) . to . be . equal ( moment ( "20160509" , schema . format ) . format ( schema . dateTimePickerOptions . format ) ) ;
103+ expect ( input . value ) . to . be . equal ( moment ( "20160509" , schema . format ) . format ( schema . dateTimePickerOptions . format ) ) ;
106104 done ( ) ;
107105 } ) ;
108106 } ) ;
@@ -112,11 +110,11 @@ describe("fieldDateTime.vue", function() {
112110 trigger ( input , "input" ) ;
113111
114112 vm . $nextTick ( ( ) => {
115- expect ( model . event ) . to . be . equal ( "20150102" ) ;
113+ expect ( model . event ) . to . be . equal ( "20150102" ) ;
116114 done ( ) ;
117115 } ) ;
118116
119- } ) ;
117+ } ) ;
120118 } ) ;
121119
122120} ) ;
0 commit comments