@@ -16,7 +16,7 @@ describe('UNIT: Transition', function () {
1616 var code = transition ( null , 1 , c . change , compiler )
1717 assert . ok ( c . called )
1818 assert . strictEqual ( code , codes . INIT )
19- assert . ok ( compiler . enteredView )
19+ assert . ok ( compiler . attached )
2020 } )
2121
2222 it ( 'should skip if no transition is found on the node' , function ( ) {
@@ -25,7 +25,7 @@ describe('UNIT: Transition', function () {
2525 code = transition ( mockEl ( ) , 1 , c . change , compiler )
2626 assert . ok ( c . called )
2727 assert . strictEqual ( code , codes . SKIP )
28- assert . ok ( compiler . enteredView )
28+ assert . ok ( compiler . attached )
2929 } )
3030
3131 } )
@@ -40,7 +40,7 @@ describe('UNIT: Transition', function () {
4040 code = transition ( mockEl ( 'css' ) , 1 , c . change , compiler )
4141 assert . ok ( c . called )
4242 assert . strictEqual ( code , codes . CSS_SKIP )
43- assert . ok ( compiler . enteredView )
43+ assert . ok ( compiler . attached )
4444 } )
4545
4646 // skip the rest
@@ -83,8 +83,8 @@ describe('UNIT: Transition', function () {
8383 assert . strictEqual ( code , codes . CSS_E )
8484 } )
8585
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 )
8888 } )
8989
9090 } )
@@ -125,8 +125,8 @@ describe('UNIT: Transition', function () {
125125 assert . strictEqual ( code , codes . CSS_L )
126126 } )
127127
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 )
130130 } )
131131
132132 } )
@@ -141,7 +141,7 @@ describe('UNIT: Transition', function () {
141141 code = transition ( mockEl ( 'js' ) , 1 , c . change , compiler )
142142 assert . ok ( c . called )
143143 assert . strictEqual ( code , codes . JS_SKIP )
144- assert . ok ( compiler . enteredView )
144+ assert . ok ( compiler . attached )
145145 } )
146146
147147 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 () {
150150 code = transition ( mockEl ( 'js' ) , 1 , c . change , compiler )
151151 assert . ok ( c . called )
152152 assert . strictEqual ( code , codes . JS_SKIP_E )
153- assert . ok ( compiler . enteredView )
153+ assert . ok ( compiler . attached )
154154
155155 c = mockChange ( )
156156 compiler = mockCompiler ( { } )
157157 code = transition ( mockEl ( 'js' ) , - 1 , c . change , compiler )
158158 assert . ok ( c . called )
159159 assert . strictEqual ( code , codes . JS_SKIP_L )
160- assert . ok ( compiler . leftView )
160+ assert . ok ( compiler . detached )
161161 } )
162162
163163 describe ( 'enter' , function ( ) {
@@ -182,8 +182,8 @@ describe('UNIT: Transition', function () {
182182 assert . strictEqual ( code , codes . JS_E )
183183 } )
184184
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 )
187187 } )
188188
189189 } )
@@ -210,8 +210,8 @@ describe('UNIT: Transition', function () {
210210 assert . strictEqual ( code , codes . JS_L )
211211 } )
212212
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 )
215215 } )
216216
217217 } )
0 commit comments