@@ -39,18 +39,16 @@ describe("fieldDateTime.vue", function() {
39
39
expect ( input ) . to . be . defined ;
40
40
expect ( input . type ) . to . be . equal ( "text" ) ;
41
41
expect ( input . classList . contains ( "form-control" ) ) . to . be . true ;
42
- expect ( input . disabled ) . to . be . false ;
43
42
} ) ;
44
43
45
44
it ( "should contain the value" , ( done ) => {
46
45
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" ) ) ;
48
47
done ( ) ;
49
48
} ) ;
50
49
} ) ;
51
50
52
51
describe ( "check optional attribute" , ( ) => {
53
- // name which attributes you want to test and that's it.
54
52
let attributes = [ "autocomplete" , "disabled" , "placeholder" , "readonly" ] ;
55
53
56
54
attributes . forEach ( function ( name ) {
@@ -63,7 +61,7 @@ describe("fieldDateTime.vue", function() {
63
61
it ( "input value should be the model value after changed" , ( done ) => {
64
62
model . event = 1234567890123 ;
65
63
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" ) ) ;
67
65
done ( ) ;
68
66
} ) ;
69
67
@@ -74,7 +72,7 @@ describe("fieldDateTime.vue", function() {
74
72
trigger ( input , "input" ) ;
75
73
76
74
vm . $nextTick ( ( ) => {
77
- expect ( model . event ) . to . be . equal ( 1420194153000 ) ;
75
+ expect ( model . event ) . to . be . equal ( 1420194153000 ) ;
78
76
done ( ) ;
79
77
} ) ;
80
78
@@ -102,7 +100,7 @@ describe("fieldDateTime.vue", function() {
102
100
103
101
it ( "should contain the value" , ( done ) => {
104
102
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 ) ) ;
106
104
done ( ) ;
107
105
} ) ;
108
106
} ) ;
@@ -112,11 +110,11 @@ describe("fieldDateTime.vue", function() {
112
110
trigger ( input , "input" ) ;
113
111
114
112
vm . $nextTick ( ( ) => {
115
- expect ( model . event ) . to . be . equal ( "20150102" ) ;
113
+ expect ( model . event ) . to . be . equal ( "20150102" ) ;
116
114
done ( ) ;
117
115
} ) ;
118
116
119
- } ) ;
117
+ } ) ;
120
118
} ) ;
121
119
122
120
} ) ;
0 commit comments