Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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