git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / 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
6var fs = require('fs');
7var path = require('path');
8
9var theResolve = require.resolve('./test-y-resolve.any');
10
11var theReqCode1 = require('./test-z-require-code-1');
12var theReqCode2b = require.resolve('./test-z-require-code-2');
13var theReqCode3 = require('./test-z-require-code-3.js');
14var theReqCode4b = require.resolve('./test-z-require-code-4.js');
15
16var theReqCode1x = require('./test-z-require-code-1' + '');
17var theReqCode2bx = require.resolve('./test-z-require-code-2' + '');
18var theReqCode3x = require('./test-z-require-code-3.js' + '');
19var theReqCode4bx = require.resolve('./test-z-require-code-4.js' + '');
20
21var theReqContent = fs.readFileSync(path.join(__dirname, './test-z-require-content.css'));
22var theReqContentX = fs.readFileSync(path.join(__dirname, './test-z-require-content.css' + ''));
23
24var theReqJson1 = require('./test-z-require-json-1');
25var theReqJson2b = require.resolve('./test-z-require-json-2');
26var theReqJson3 = require('./test-z-require-json-3.json');
27var theReqJson4b = require.resolve('./test-z-require-json-4.json');
28
29var theReqJson1x = require('./test-z-require-json-1' + '');
30var theReqJson2bx = require.resolve('./test-z-require-json-2' + '');
31var theReqJson3x = require('./test-z-require-json-3.json' + '');
32var theReqJson4bx = require.resolve('./test-z-require-json-4.json' + '');
33
34var theReqJson5 = fs.readFileSync(path.join(__dirname, './test-z-require-json-5.json'));
35var theReqJson5s = fs.readFileSync(require.resolve(
36 path.join(__dirname, './test-z-require-json-5.json')));
37
38console.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