Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-50-may-exclude-must-exclude / test-x-index.js
1672 bytesRaw
1 | /* eslint-disable max-statements-per-line */ |
2 | /* eslint-disable no-empty */ |
3 | |
4 | 'use strict'; |
5 | |
6 | try { require.resolve('reqResSomeLit'); } catch (_) {} |
7 | try { require.resolve('reqResSomeLitMay', 'may-exclude'); } catch (_) {} |
8 | try { require.resolve('reqResSomeLitMust', 'must-exclude'); } catch (_) {} |
9 | try { require('reqSomeLit'); } catch (_) {} |
10 | try { require('reqSomeLitMay', 'may-exclude'); } catch (_) {} |
11 | try { require('reqSomeLitMust', 'must-exclude'); } catch (_) {} |
12 | |
13 | var tryReqResSomeVar = 'some'; |
14 | var tryReqResSomeVarMay = 'some'; |
15 | var tryReqResSomeVarMust = 'some'; |
16 | |
17 | var tryReqSomeVar = 'some'; |
18 | var tryReqSomeVarMay = 'some'; |
19 | var tryReqSomeVarMust = 'some'; |
20 | |
21 | try { require.resolve(tryReqResSomeVar); } catch (_) {} |
22 | try { require.resolve(tryReqResSomeVarMay, 'may-exclude'); } catch (_) {} |
23 | try { require.resolve(tryReqResSomeVarMust, 'must-exclude'); } catch (_) {} |
24 | try { require(tryReqSomeVar); } catch (_) {} |
25 | try { require(tryReqSomeVarMay, 'may-exclude'); } catch (_) {} |
26 | try { require(tryReqSomeVarMust, 'must-exclude'); } catch (_) {} |
27 | |
28 | var reqResSomeVar = 'some'; |
29 | var reqResSomeVarMay = 'some'; |
30 | var reqResSomeVarMust = 'some'; |
31 | |
32 | var reqSomeVar = 'some'; |
33 | var reqSomeVarMay = 'some'; |
34 | var reqSomeVarMust = 'some'; |
35 | |
36 | require.resolve(reqResSomeVar); |
37 | require.resolve(reqResSomeVarMay, 'may-exclude'); |
38 | require.resolve(reqResSomeVarMust, 'must-exclude'); |
39 | require.resolve(reqResSomeVar, reqResSomeVar); |
40 | require.resolve(reqResSomeVar, 'can-can'); |
41 | require(reqSomeVar); |
42 | require(reqSomeVarMay, 'may-exclude'); |
43 | require(reqSomeVarMust, 'must-exclude'); |
44 | require(reqSomeVar, reqSomeVar); |
45 | require(reqSomeVar, 'can-can'); |
46 | |
47 | require.resolve('./test-y-index.js'); |
48 | require('./test-y-index.js'); |
49 |
Built with git-ssb-web