File: main.js

package info (click to toggle)
node-rollup-plugin-commonjs 25.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,304 kB
  • sloc: javascript: 6,824; makefile: 6
file content (7 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
if (Math.random() < 2) require('./foo.js');
if (Math.random() > 2) require('./bar.js');

global.main = true;

t.is(global.foo, true, 'foo');
t.is(global.main, true, 'main');