Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / 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