@@ -139,26 +139,6 @@ describe('dependencyTree', () => {
139
139
assert . ok ( ! Object . keys ( subTree ) . includes ( 'notReal' ) ) ;
140
140
} ) ;
141
141
142
- it ( 'test includeNonExisting=true' , ( ) => {
143
- const directory = path . join ( __dirname , '/fixtures/onlyRealDeps' ) ;
144
- const filename = path . normalize ( `${ directory } /a.js` ) ;
145
-
146
- const tree = dependencyTree ( { filename, directory, includeNonExisting : true } ) ;
147
- const subTree = tree [ filename ] ;
148
-
149
- assert . ok ( Object . keys ( subTree ) . includes ( ':!EXISTS: not-real' ) ) ;
150
- } ) ;
151
-
152
- it ( 'test includeCore=true' , ( ) => {
153
- const directory = path . join ( __dirname , '/fixtures/onlyRealDeps' ) ;
154
- const filename = path . normalize ( `${ directory } /a.js` ) ;
155
-
156
- const tree = dependencyTree ( { filename, directory, includeCore : true } ) ;
157
- const subTree = tree [ filename ] ;
158
-
159
- assert . ok ( Object . keys ( subTree ) . includes ( ':!EXISTS: path' ) ) ;
160
- } ) ;
161
-
162
142
it ( 'does not choke on cyclic dependencies' , ( ) => {
163
143
mockfs ( {
164
144
[ path . join ( __dirname , '/cyclic' ) ] : {
@@ -241,6 +221,26 @@ describe('dependencyTree', () => {
241
221
assert . ok ( ! list . includes ( path . join ( directory , 'required.js' ) ) ) ;
242
222
} ) ;
243
223
224
+ it ( 'test includeNonExisting=true' , ( ) => {
225
+ const directory = path . join ( __dirname , '/fixtures/onlyRealDeps' ) ;
226
+ const filename = path . normalize ( `${ directory } /a.js` ) ;
227
+
228
+ const tree = dependencyTree ( { filename, directory, includeNonExisting : true } ) ;
229
+ const subTree = tree [ filename ] ;
230
+
231
+ assert . ok ( Object . keys ( subTree ) . includes ( ':!EXISTS: not-real' ) ) ;
232
+ } ) ;
233
+
234
+ it ( 'test includeCore=true' , ( ) => {
235
+ const directory = path . join ( __dirname , '/fixtures/onlyRealDeps' ) ;
236
+ const filename = path . normalize ( `${ directory } /a.js` ) ;
237
+
238
+ const tree = dependencyTree ( { filename, directory, includeCore : true } ) ;
239
+ const subTree = tree [ filename ] ;
240
+
241
+ assert . ok ( Object . keys ( subTree ) . includes ( ':!EXISTS: path' ) ) ;
242
+ } ) ;
243
+
244
244
describe ( 'when given a detective configuration' , ( ) => {
245
245
it ( 'passes it through to precinct' , ( ) => {
246
246
const spy = sinon . spy ( precinct , 'paperwork' ) ;
0 commit comments