syntax-tree / mdast-util-to-markdown
Showing 1 of 1 files from the diff.

@@ -8,13 +8,17 @@
Loading
8 8
 * This info isn’t used yet but suchs functionality allows line wrapping,
9 9
 * and theoretically source maps (though, is there practical use in that?).
10 10
 *
11 -
 * @param {TrackFields} options
11 +
 * @param {TrackFields} options_
12 12
 */
13 -
export function track(options) {
14 -
  const now = options.now
15 -
  let lineShift = options.lineShift
16 -
  let line = now.line
17 -
  let column = now.column
13 +
export function track(options_) {
14 +
  // Defaults are used to prevent crashes when older utilities somehow activate
15 +
  // this code.
16 +
  /* c8 ignore next 5 */
17 +
  const options = options_ || {}
18 +
  const now = options.now || {}
19 +
  let lineShift = options.lineShift || 0
20 +
  let line = now.line || 1
21 +
  let column = now.column || 1
18 22
19 23
  return {move, current, shift}
20 24
Files Coverage
lib 100.00%
index.js 100.00%
Project Totals (47 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading