git ssb

0+

cel-desktop / ssb-pkg



Tree: 67c0e15a98a66eb99db2251478505d6f3d37535c

Files: 67c0e15a98a66eb99db2251478505d6f3d37535c / test / test-50-require-resolve-2 / test-x-index.js

2929 bytesRaw
1/* eslint-disable no-multi-spaces */
2
3'use strict';
4
5var fs = require('fs');
6var path = require('path');
7
8/*
9var theResolveA = require.resolve("./test-y-resolve-A.txt");
10var theResolveB = require.resolve("./test-y-resolve-B.txt", "must-exclude");
11var theResolveB2 = require.resolve("./test-y-resolve-B.txt", "may-exclude");
12var theResolvePathC = "./test-y-resolve-C.txt"; var theResolveC = require.resolve(theResolvePathC);
13var theResolvePathD = "./test-y-resolve-D.txt"; var theResolveD = require.resolve(theResolvePathD, "must-exclude");
14var theResolvePathD2 = "./test-y-resolve-D.txt"; var theResolveD2 = require.resolve(theResolvePathD2, "may-exclude");
15var theResolveE = require.resolve("./test-y-resolve-E.txt");
16var theResolveF = require.resolve("./test-y-resolve-F.txt", "must-exclude");
17var theResolveF2 = require.resolve("./test-y-resolve-F.txt", "may-exclude");
18var theResolvePathG = "./test-y-resolve-G.txt"; var theResolveG = require.resolve(theResolvePathG);
19var theResolvePathH = "./test-y-resolve-H.txt"; var theResolveH = require.resolve(theResolvePathH, "must-exclude");
20var theResolvePathH2 = "./test-y-resolve-H.txt"; var theResolveH2 = require.resolve(theResolvePathH2, "may-exclude");
21*/
22var theReqCodeI = require('./test-z-require-code-I.js');
23var theReqCodeJ = require('./test-z-require-code-J.js', 'must-exclude');
24var theReqCodeJ2 = require('./test-z-require-code-J.js', 'may-exclude');
25var theReqContentK = fs.readFileSync('./test-z-require-content-K.txt');
26var theReqContentL = fs.readFileSync('./test-z-require-content-L.txt', null, 'must-exclude');
27var theReqContentL2 = fs.readFileSync('./test-z-require-content-L.txt', null, 'may-exclude');
28var theReqContentM = fs.readFileSync(path.join(__dirname, './test-z-require-content-M.txt'));
29var theReqContentN = fs.readFileSync(path.join(__dirname, './test-z-require-content-N.txt'), null, 'must-exclude');
30var theReqContentN2 = fs.readFileSync(path.join(__dirname, './test-z-require-content-N.txt'), null, 'may-exclude');
31
32console.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