@@ -78,26 +78,6 @@ describe('UNIT: Directives', function () {
78
78
79
79
} )
80
80
81
- describe ( 'style' , function ( ) {
82
-
83
- var dir = mockDirective ( 'style' )
84
-
85
- it ( 'should convert the arg from dash style to camel case' , function ( ) {
86
- dir . arg = 'font-family'
87
- dir . bind ( )
88
- assert . strictEqual ( dir . arg , 'fontFamily' )
89
- dir . arg = '-webkit-transform'
90
- dir . bind ( )
91
- assert . strictEqual ( dir . arg , 'webkitTransform' )
92
- } )
93
-
94
- it ( 'should update the element style' , function ( ) {
95
- dir . update ( 'rotate(20deg)' )
96
- assert . strictEqual ( dir . el . style . webkitTransform , 'rotate(20deg)' )
97
- } )
98
-
99
- } )
100
-
101
81
describe ( 'show' , function ( ) {
102
82
103
83
var dir = mockDirective ( 'show' )
@@ -130,38 +110,6 @@ describe('UNIT: Directives', function () {
130
110
131
111
} )
132
112
133
- describe ( 'visible' , function ( ) {
134
-
135
- var dir = mockDirective ( 'visible' )
136
-
137
- it ( 'should be default value when value is truthy' , function ( ) {
138
- dir . update ( 1 )
139
- assert . strictEqual ( dir . el . style . visibility , '' )
140
- dir . update ( 'hi!' )
141
- assert . strictEqual ( dir . el . style . visibility , '' )
142
- dir . update ( true )
143
- assert . strictEqual ( dir . el . style . visibility , '' )
144
- dir . update ( { } )
145
- assert . strictEqual ( dir . el . style . visibility , '' )
146
- dir . update ( function ( ) { } )
147
- assert . strictEqual ( dir . el . style . visibility , '' )
148
- } )
149
-
150
- it ( 'should be hidden when value is falsy' , function ( ) {
151
- dir . update ( 0 )
152
- assert . strictEqual ( dir . el . style . visibility , 'hidden' )
153
- dir . update ( '' )
154
- assert . strictEqual ( dir . el . style . visibility , 'hidden' )
155
- dir . update ( false )
156
- assert . strictEqual ( dir . el . style . visibility , 'hidden' )
157
- dir . update ( null )
158
- assert . strictEqual ( dir . el . style . visibility , 'hidden' )
159
- dir . update ( undefined )
160
- assert . strictEqual ( dir . el . style . visibility , 'hidden' )
161
- } )
162
-
163
- } )
164
-
165
113
describe ( 'class' , function ( ) {
166
114
167
115
it ( 'should set class to the value if it has no arg' , function ( ) {
0 commit comments