Files: cfc8d49135488f7554210234b3a503c2dbd6c6a5 / test / test-50-require-resolve / test-x-index.js
2809 bytesRaw
1 | /* eslint-disable no-multi-spaces */ |
2 | /* eslint-disable no-useless-concat */ |
3 | |
4 | 'use strict'; |
5 | |
6 | var fs = require('fs'); |
7 | var path = require('path'); |
8 | |
9 | var theResolve = require.resolve('./test-y-resolve.any'); |
10 | |
11 | var theReqCode1 = require('./test-z-require-code-1'); |
12 | var theReqCode2b = require.resolve('./test-z-require-code-2'); |
13 | var theReqCode3 = require('./test-z-require-code-3.js'); |
14 | var theReqCode4b = require.resolve('./test-z-require-code-4.js'); |
15 | |
16 | var theReqCode1x = require('./test-z-require-code-1' + ''); |
17 | var theReqCode2bx = require.resolve('./test-z-require-code-2' + ''); |
18 | var theReqCode3x = require('./test-z-require-code-3.js' + ''); |
19 | var theReqCode4bx = require.resolve('./test-z-require-code-4.js' + ''); |
20 | |
21 | var theReqContent = fs.readFileSync(path.join(__dirname, './test-z-require-content.css')); |
22 | var theReqContentX = fs.readFileSync(path.join(__dirname, './test-z-require-content.css' + '')); |
23 | |
24 | var theReqJson1 = require('./test-z-require-json-1'); |
25 | var theReqJson2b = require.resolve('./test-z-require-json-2'); |
26 | var theReqJson3 = require('./test-z-require-json-3.json'); |
27 | var theReqJson4b = require.resolve('./test-z-require-json-4.json'); |
28 | |
29 | var theReqJson1x = require('./test-z-require-json-1' + ''); |
30 | var theReqJson2bx = require.resolve('./test-z-require-json-2' + ''); |
31 | var theReqJson3x = require('./test-z-require-json-3.json' + ''); |
32 | var theReqJson4bx = require.resolve('./test-z-require-json-4.json' + ''); |
33 | |
34 | var theReqJson5 = fs.readFileSync(path.join(__dirname, './test-z-require-json-5.json')); |
35 | var theReqJson5s = fs.readFileSync(require.resolve( |
36 | path.join(__dirname, './test-z-require-json-5.json'))); |
37 | |
38 | console.log([ |
39 | |
40 | require(theResolve).what, |
41 | |
42 | theReqCode1.what, |
43 | path.basename(theReqCode2b), |
44 | theReqCode3.what, |
45 | path.basename(theReqCode4b), |
46 | |
47 | theReqCode1x.what, |
48 | path.basename(theReqCode2bx), |
49 | theReqCode3x.what, |
50 | path.basename(theReqCode4bx), |
51 | |
52 | theReqContent.toString().split('\n')[0].split(' ')[0], |
53 | theReqContentX.toString().split('\n')[0].split(' ')[0], |
54 | |
55 | theReqJson1.what, |
56 | path.basename(theReqJson2b), |
57 | theReqJson3.what, |
58 | path.basename(theReqJson4b), |
59 | |
60 | theReqJson1x.what, |
61 | path.basename(theReqJson2bx), |
62 | theReqJson3x.what, |
63 | path.basename(theReqJson4bx), |
64 | |
65 | theReqJson5.toString().split('"')[3], |
66 | theReqJson5s.toString().split('"')[3] |
67 | |
68 | ].join('\n')); |
69 |
Built with git-ssb-web