Files: ca90b5ca0579ebdcc0635288bce4978e3fb200f5 / test / test-50-not-found-wording / test-x-index.js
330 bytesRaw
1 | ; |
2 | |
3 | var fs = require('fs'); |
4 | var path = require('path'); |
5 | var name = path.join(__dirname, 'not' + 'exists'); // eslint-disable-line no-useless-concat |
6 | |
7 | try { |
8 | fs.readFileSync(name); |
9 | } catch (e) { |
10 | console.log(e.message); |
11 | } |
12 | |
13 | console.log('*****'); |
14 | |
15 | try { |
16 | require('not-exists'); |
17 | } catch (e) { |
18 | console.log(e.message); |
19 | } |
20 |
Built with git-ssb-web