| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f4b6b9f commit e9d4665
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,12 +1,12 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var common = require('../common'); | ||
| 3 | - var path = require('path'); | ||
| 4 | - var assert = require('assert'); | ||
| 2 | + const common = require('../common'); | ||
| 3 | + const path = require('path'); | ||
| 4 | + const assert = require('assert'); | ||
| 5 | 5 | ||
| 6 | 6 | try { | |
| 7 | 7 | require(path.join(common.fixturesDir, 'invalid.json')); | |
| 8 | 8 | } catch (err) { | |
| 9 | - var re = /test[/\\]fixtures[/\\]invalid.json: Unexpected string/; | ||
| 10 | - var i = err.message.match(re); | ||
| 9 | + const re = /test[/\\]fixtures[/\\]invalid.json: Unexpected string/; | ||
| 10 | + const i = err.message.match(re); | ||
| 11 | 11 | assert.notStrictEqual(null, i, 'require() json error should include path'); | |
| 12 | 12 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments