@@ -5,15 +5,15 @@ describe('Option: dont_clone', function () {
5
5
var target ;
6
6
beforeEach ( function ( ) {
7
7
target = $ ( `
8
- <ol id="list">
9
- <li class="list_var">
10
- <div>This will be cloned.</div>
11
- <div class="dont_clone">This will NOT be cloned.</div>
12
- <input type="text" size="30" name="list_0" id="list_0">
13
- <button type="button" class="list_del">Delete</button>
14
- </li>
15
- </ol>
16
- <input type="button" value="Add" class="list_add">
8
+ <ol id="list">
9
+ <li class="list_var">
10
+ <div>This will be cloned.</div>
11
+ <div class="dont_clone">This will NOT be cloned.</div>
12
+ <input type="text" size="30" name="list_0" id="list_0">
13
+ <button type="button" class="list_del">Delete</button>
14
+ </li>
15
+ </ol>
16
+ <input type="button" value="Add" class="list_add">
17
17
` ) . appendTo ( 'body' ) ;
18
18
} ) ;
19
19
@@ -24,12 +24,12 @@ describe('Option: dont_clone', function () {
24
24
it ( 'should clone' , async function ( ) {
25
25
await target . addInputArea ( ) ; // The dont_clone option is not set.
26
26
await $ ( '.list_add' ) . trigger ( 'click' ) ;
27
- await assert . equal ( $ ( '.list_var' ) . eq ( 1 ) . find ( '.dont_clone' ) . length , 1 ) ;
27
+ assert . equal ( $ ( '.list_var' ) . eq ( 1 ) . find ( '.dont_clone' ) . length , 1 ) ;
28
28
} ) ;
29
29
30
30
it ( 'should not clone' , async function ( ) {
31
31
await target . addInputArea ( { dont_clone : '.dont_clone' } ) ;
32
32
await $ ( '.list_add' ) . trigger ( 'click' ) ;
33
- await assert . equal ( $ ( '.list_var' ) . eq ( 1 ) . find ( '.dont_clone' ) . length , 0 ) ;
33
+ assert . equal ( $ ( '.list_var' ) . eq ( 1 ) . find ( '.dont_clone' ) . length , 0 ) ;
34
34
} ) ;
35
35
} ) ;
0 commit comments