@@ -16,7 +16,7 @@ describe('UNIT: Transition', function () {
16
16
var code = transition ( null , 1 , c . change , compiler )
17
17
assert . ok ( c . called )
18
18
assert . strictEqual ( code , codes . INIT )
19
- assert . ok ( compiler . enteredView )
19
+ assert . ok ( compiler . attached )
20
20
} )
21
21
22
22
it ( 'should skip if no transition is found on the node' , function ( ) {
@@ -25,7 +25,7 @@ describe('UNIT: Transition', function () {
25
25
code = transition ( mockEl ( ) , 1 , c . change , compiler )
26
26
assert . ok ( c . called )
27
27
assert . strictEqual ( code , codes . SKIP )
28
- assert . ok ( compiler . enteredView )
28
+ assert . ok ( compiler . attached )
29
29
} )
30
30
31
31
} )
@@ -40,7 +40,7 @@ describe('UNIT: Transition', function () {
40
40
code = transition ( mockEl ( 'css' ) , 1 , c . change , compiler )
41
41
assert . ok ( c . called )
42
42
assert . strictEqual ( code , codes . CSS_SKIP )
43
- assert . ok ( compiler . enteredView )
43
+ assert . ok ( compiler . attached )
44
44
} )
45
45
46
46
// skip the rest
@@ -83,8 +83,8 @@ describe('UNIT: Transition', function () {
83
83
assert . strictEqual ( code , codes . CSS_E )
84
84
} )
85
85
86
- it ( 'should have called enteredView hook' , function ( ) {
87
- assert . ok ( compiler . enteredView )
86
+ it ( 'should have called attached hook' , function ( ) {
87
+ assert . ok ( compiler . attached )
88
88
} )
89
89
90
90
} )
@@ -125,8 +125,8 @@ describe('UNIT: Transition', function () {
125
125
assert . strictEqual ( code , codes . CSS_L )
126
126
} )
127
127
128
- it ( 'should have called leftView hook' , function ( ) {
129
- assert . ok ( compiler . leftView )
128
+ it ( 'should have called detached hook' , function ( ) {
129
+ assert . ok ( compiler . detached )
130
130
} )
131
131
132
132
} )
@@ -141,7 +141,7 @@ describe('UNIT: Transition', function () {
141
141
code = transition ( mockEl ( 'js' ) , 1 , c . change , compiler )
142
142
assert . ok ( c . called )
143
143
assert . strictEqual ( code , codes . JS_SKIP )
144
- assert . ok ( compiler . enteredView )
144
+ assert . ok ( compiler . attached )
145
145
} )
146
146
147
147
it ( 'should skip if the option is given but the enter/leave func is not defined' , function ( ) {
@@ -150,14 +150,14 @@ describe('UNIT: Transition', function () {
150
150
code = transition ( mockEl ( 'js' ) , 1 , c . change , compiler )
151
151
assert . ok ( c . called )
152
152
assert . strictEqual ( code , codes . JS_SKIP_E )
153
- assert . ok ( compiler . enteredView )
153
+ assert . ok ( compiler . attached )
154
154
155
155
c = mockChange ( )
156
156
compiler = mockCompiler ( { } )
157
157
code = transition ( mockEl ( 'js' ) , - 1 , c . change , compiler )
158
158
assert . ok ( c . called )
159
159
assert . strictEqual ( code , codes . JS_SKIP_L )
160
- assert . ok ( compiler . leftView )
160
+ assert . ok ( compiler . detached )
161
161
} )
162
162
163
163
describe ( 'enter' , function ( ) {
@@ -182,8 +182,8 @@ describe('UNIT: Transition', function () {
182
182
assert . strictEqual ( code , codes . JS_E )
183
183
} )
184
184
185
- it ( 'should have called enteredView hook' , function ( ) {
186
- assert . ok ( compiler . enteredView )
185
+ it ( 'should have called attached hook' , function ( ) {
186
+ assert . ok ( compiler . attached )
187
187
} )
188
188
189
189
} )
@@ -210,8 +210,8 @@ describe('UNIT: Transition', function () {
210
210
assert . strictEqual ( code , codes . JS_L )
211
211
} )
212
212
213
- it ( 'should have called leftView hook' , function ( ) {
214
- assert . ok ( compiler . leftView )
213
+ it ( 'should have called detached hook' , function ( ) {
214
+ assert . ok ( compiler . detached )
215
215
} )
216
216
217
217
} )
0 commit comments