@@ -17,83 +17,60 @@ var grunt = require( 'grunt' ),
17
17
18
18
describe ( 'Patch helpers' , function ( ) {
19
19
20
- it ( 'git a/b diffs should not automatticaly trigger moving to src' , function ( done ) {
20
+ it ( 'git a/b diffs should not automatticaly trigger moving to src' , function ( ) {
21
21
expect ( patch . moveToSrc ( abyes ) ) . not . toBe ( true ) ;
22
-
23
- done ( ) ;
24
22
} ) ;
25
23
26
- it ( 'tests diffs should always be applied in the root of the checkout' , function ( done ) {
24
+ it ( 'tests diffs should always be applied in the root of the checkout' , function ( ) {
27
25
28
26
expect ( patch . moveToSrc ( testsGit ) ) . not . toBe ( true ) ;
29
27
expect ( patch . moveToSrc ( testsSvn ) ) . not . toBe ( true ) ;
30
-
31
- done ( ) ;
32
28
} ) ;
33
29
34
- it ( 'dev.git diffs should always be applied in the root of the checkout' , function ( done ) {
30
+ it ( 'dev.git diffs should always be applied in the root of the checkout' , function ( ) {
35
31
36
32
expect ( patch . moveToSrc ( developGit ) ) . not . toBe ( true ) ;
37
33
expect ( patch . moveToSrc ( developIndexGit ) ) . not . toBe ( true ) ;
38
-
39
- done ( ) ;
40
34
} ) ;
41
35
42
- it ( 'dev.svn diffs should always be applied in the root of the checkout' , function ( done ) {
36
+ it ( 'dev.svn diffs should always be applied in the root of the checkout' , function ( ) {
43
37
44
38
expect ( patch . moveToSrc ( developSvn ) ) . not . toBe ( true ) ;
45
39
expect ( patch . moveToSrc ( developIndexSvn ) ) . not . toBe ( true ) ;
46
-
47
- done ( ) ;
48
40
} ) ;
49
41
50
- it ( 'core.git.wordpress.org diffs should always be applied in the svn folder' , function ( done ) {
42
+ it ( 'core.git.wordpress.org diffs should always be applied in the svn folder' , function ( ) {
51
43
52
44
expect ( patch . moveToSrc ( coreGit ) ) . toBe ( true ) ;
53
-
54
- done ( ) ;
55
45
} ) ;
56
46
57
- it ( 'core.svn.wordpress.org diffs should always be applied in the svn folder' , function ( done ) {
47
+ it ( 'core.svn.wordpress.org diffs should always be applied in the svn folder' , function ( ) {
58
48
59
49
expect ( patch . moveToSrc ( coreSvn ) ) . toBe ( true ) ;
60
-
61
- done ( ) ;
62
50
} ) ;
63
51
64
- it ( 'core.svn.wordpress.org diffs from trunk should always be applied in the src folder' , function ( done ) {
52
+ it ( 'core.svn.wordpress.org diffs from trunk should always be applied in the src folder' , function ( ) {
65
53
66
54
expect ( patch . moveToSrc ( coreTrunkSvn ) ) . toBe ( true ) ;
67
55
expect ( patch . isAb ( coreTrunkSvn ) ) . toBe ( true ) ;
68
-
69
- done ( ) ;
70
56
} ) ;
71
57
72
- it ( 'index.php should always be applied in the src folder' , function ( done ) {
73
-
58
+ it ( 'index.php should always be applied in the src folder' , function ( ) {
74
59
expect ( patch . moveToSrc ( coreIndexSvn ) ) . toBe ( true ) ;
75
60
expect ( patch . moveToSrc ( coreIndexGit ) ) . toBe ( true ) ;
76
-
77
- done ( ) ;
78
-
79
61
} ) ;
80
62
81
- it ( 'wp-config-sample.php should always be applied in the root folder' , function ( done ) {
63
+ it ( 'wp-config-sample.php should always be applied in the root folder' , function ( ) {
82
64
expect ( patch . moveToSrc ( developSampleSvn ) ) . not . toBe ( true ) ;
83
65
expect ( patch . moveToSrc ( developSampleGit ) ) . not . toBe ( true ) ;
84
-
85
- done ( ) ;
86
-
87
66
} ) ;
88
67
89
- it ( 'isAb should return true on patches with a/ b/ style' , function ( done ) {
68
+ it ( 'isAb should return true on patches with a/ b/ style' , function ( ) {
90
69
91
70
expect ( patch . isAb ( abyes ) ) . toBe ( true ) ;
92
-
93
- done ( ) ;
94
71
} ) ;
95
72
96
- it ( 'isAb should return false on patches without a/ b/ style' , function ( done ) {
73
+ it ( 'isAb should return false on patches without a/ b/ style' , function ( ) {
97
74
98
75
expect ( patch . isAb ( developSampleGit ) ) . not . toBe ( true ) ;
99
76
expect ( patch . isAb ( developSampleSvn ) ) . not . toBe ( true ) ;
@@ -107,8 +84,6 @@ describe( 'Patch helpers', function() {
107
84
expect ( patch . isAb ( developIndexSvn ) ) . not . toBe ( true ) ;
108
85
expect ( patch . isAb ( testsGit ) ) . not . toBe ( true ) ;
109
86
expect ( patch . isAb ( testsSvn ) ) . not . toBe ( true ) ;
110
-
111
- done ( ) ;
112
87
} ) ;
113
88
114
89
} ) ;
0 commit comments