git ssb

0+

cel-desktop / ssb-pkg



Tree: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44

Files: c5c7a8ffadbd51aa28a5f3f096fe43f69405da44 / 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
7var fs = require('fs');
8var path = require('path');
9var theResolveA = require.resolve('./test-y-' + 'resolve-A.txt');
10var theResolveB = require.resolve('./test-y-' + 'resolve-B.txt', 'must-exclude');
11var theResolvePathC = './test-y-' + 'resolve-C.txt'; var theResolveC = require.resolve(theResolvePathC);
12var theResolvePathD = './test-y-' + 'resolve-D.txt'; var theResolveD = require.resolve(theResolvePathD, 'must-exclude');
13var theResolveE = require.resolve('./test-y-' + 'resolve-E.txt');
14var theResolveF = require.resolve('./test-y-' + 'resolve-F.txt', 'must-exclude');
15var theResolvePathG = './test-y-' + 'resolve-G.txt'; var theResolveG = require.resolve(theResolvePathG);
16var theResolvePathH = './test-y-' + 'resolve-H.txt'; var theResolveH = require.resolve(theResolvePathH, 'must-exclude');
17var theReqCodeI = require('./test-z-' + 'require-code-I.js');
18var theReqCodeJ = require(path.resolve('./test-z-' + 'require-code-J'));
19var theReqContentK = fs.readFileSync('./test-z-' + 'require-content-K.txt');
20var theReqContentL = fs.readFileSync('./test-z-' + 'require-content-L.txt', null, 'must-exclude');
21var theReqContentM = fs.readFileSync(path.join(__dirname,
22 './test-z-' + 'require-content-M.txt'));
23var theReqContentN = fs.readFileSync(path.join(__dirname,
24 './test-z-' + 'require-content-N.txt'), null, 'must-exclude');
25
26console.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