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