Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-50-require-resolve-2 / test-x-index.js
2929 bytesRaw
1 | /* eslint-disable no-multi-spaces */ |
2 | |
3 | 'use strict'; |
4 | |
5 | var fs = require('fs'); |
6 | var path = require('path'); |
7 | |
8 | /* |
9 | var theResolveA = require.resolve("./test-y-resolve-A.txt"); |
10 | var theResolveB = require.resolve("./test-y-resolve-B.txt", "must-exclude"); |
11 | var theResolveB2 = require.resolve("./test-y-resolve-B.txt", "may-exclude"); |
12 | var theResolvePathC = "./test-y-resolve-C.txt"; var theResolveC = require.resolve(theResolvePathC); |
13 | var theResolvePathD = "./test-y-resolve-D.txt"; var theResolveD = require.resolve(theResolvePathD, "must-exclude"); |
14 | var theResolvePathD2 = "./test-y-resolve-D.txt"; var theResolveD2 = require.resolve(theResolvePathD2, "may-exclude"); |
15 | var theResolveE = require.resolve("./test-y-resolve-E.txt"); |
16 | var theResolveF = require.resolve("./test-y-resolve-F.txt", "must-exclude"); |
17 | var theResolveF2 = require.resolve("./test-y-resolve-F.txt", "may-exclude"); |
18 | var theResolvePathG = "./test-y-resolve-G.txt"; var theResolveG = require.resolve(theResolvePathG); |
19 | var theResolvePathH = "./test-y-resolve-H.txt"; var theResolveH = require.resolve(theResolvePathH, "must-exclude"); |
20 | var theResolvePathH2 = "./test-y-resolve-H.txt"; var theResolveH2 = require.resolve(theResolvePathH2, "may-exclude"); |
21 | */ |
22 | var theReqCodeI = require('./test-z-require-code-I.js'); |
23 | var theReqCodeJ = require('./test-z-require-code-J.js', 'must-exclude'); |
24 | var theReqCodeJ2 = require('./test-z-require-code-J.js', 'may-exclude'); |
25 | var theReqContentK = fs.readFileSync('./test-z-require-content-K.txt'); |
26 | var theReqContentL = fs.readFileSync('./test-z-require-content-L.txt', null, 'must-exclude'); |
27 | var theReqContentL2 = fs.readFileSync('./test-z-require-content-L.txt', null, 'may-exclude'); |
28 | var theReqContentM = fs.readFileSync(path.join(__dirname, './test-z-require-content-M.txt')); |
29 | var theReqContentN = fs.readFileSync(path.join(__dirname, './test-z-require-content-N.txt'), null, 'must-exclude'); |
30 | var theReqContentN2 = fs.readFileSync(path.join(__dirname, './test-z-require-content-N.txt'), null, 'may-exclude'); |
31 | |
32 | console.log([ |
33 | // fs.readFileSync(theResolveA).toString(), |
34 | // fs.readFileSync(theResolveB).toString(), |
35 | // fs.readFileSync(theResolveC).toString(), |
36 | // fs.readFileSync(theResolveD).toString(), |
37 | // fs.readFileSync(theResolveE).toString(), |
38 | // fs.readFileSync(theResolveF, null, "must-exclude").toString(), |
39 | // fs.readFileSync(theResolveG).toString(), |
40 | // fs.readFileSync(theResolveH, null, "must-exclude").toString(), |
41 | theReqCodeI.v, |
42 | theReqCodeJ.v, |
43 | theReqCodeJ2.v, |
44 | theReqContentK.toString(), |
45 | theReqContentL.toString(), |
46 | theReqContentL2.toString(), |
47 | theReqContentM.toString(), |
48 | theReqContentN.toString(), |
49 | theReqContentN2.toString() |
50 | ].join('\n')); |
51 |
Built with git-ssb-web