File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,19 @@ var arrayValue = function(arr, key) {
2424} ;
2525
2626
27- // var assert = require('chai').assert;
2827var assert = chai . assert ;
28+ var fixture ;
2929
3030describe ( 'form' , function ( ) {
31+ before ( function ( ) {
32+ fixture = $ ( '#main' ) . html ( ) ;
33+ } ) ;
34+
35+ beforeEach ( function ( ) {
36+ $ ( '#main' ) . html ( fixture ) ;
37+ } ) ;
38+
39+
3140 it ( '"action" and "method" form attributes' , function ( ) {
3241 var f = $ ( '#form1' ) ;
3342 assert . strictEqual ( f . attr ( 'action' ) , 'text.php' , 'form "action"' ) ;
@@ -164,7 +173,7 @@ describe('form', function() {
164173 assert . ok ( '' == val , 'success: ' + val ) ;
165174 } ) ;
166175
167- // test resetForm
176+ // test clearForm
168177 it ( 'clearForm (select)' , function ( ) {
169178 var $el = $ ( '#form1 select[name=Single]' ) ;
170179 var val = $el . val ( ) ;
You can’t perform that action at this time.
0 commit comments