Skip to content

Commit 089f219

Browse files
authored
Merge pull request #555 from VisLab/test_update
Updated tests to correspond to new error messages
2 parents 8b1485b + 8d421d9 commit 089f219

40 files changed

+112
-23
lines changed

src/bids/datasetParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Note: An implementation of the BidsFileAccessor class for web folder access is not included in the
88
* hed-javascript Node distribution, but is included in the hed-javascript GitHub repository in the browser folder.
99
*
10-
* @module datasetParser
10+
* @module bids/datasetParser
1111
*/
1212

1313
import fsp from 'node:fs/promises'

src/bids/schema.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
/**
22
* This module contains functions for building HED schemas for BIDS datasets.
3-
* @module schema
3+
* @module bids/schema
44
*/
55

66
import { buildSchemas } from '../schema/init'
7-
import { IssueError } from '../issues/issues'
87
import { SchemasSpec } from '../schema/specs'
9-
import { BidsJsonFile } from './types/json'
108

119
/**
1210
* Build a HED schema collection based on the defined BIDS schemas.

src/bids/tsvParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This module provides functions for parsing TSV files.
33
*
4-
* @module tsvParser
4+
* @module bids/tsvParser
55
*/
66

77
const stripBOM = (str) => str.replace(/^\uFEFF/, '')

src/bids/types/dataset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* This module contains the {@link BidsDataset} class, which represents a BIDS dataset for HED validation.
3-
* @module dataset
3+
* @module bids/types/dataset
44
*/
55
import { BidsFileAccessor } from '../datasetParser'
66
import { BidsSidecar } from './json'

src/bids/types/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This module contains the {@link BidsFile} class, which is the base class for BIDS files.
33
*
4-
* @module file
4+
* @module bids/types/file
55
*/
66

77
import { BidsHedIssue } from './issues'

src/bids/types/issues.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Provides a wrapper for HED validation issues that is compatible with the BIDS validator.
3-
* @module issues
3+
* @module bids/types/issues
44
*/
55
import { generateIssue, IssueError } from '../../issues/issues.js'
66

@@ -140,7 +140,7 @@ export class BidsHedIssue {
140140

141141
const numErrors = issueList.length
142142
const numFiles = new Set(issueList.map((issue) => issue.location)).size
143-
newIssue.issueMessage += ` There are ${numErrors} total errors of this type in ${numFiles} unique files.`
143+
newIssue.issueMessage += ` There are ${numErrors} total issues of this type in ${numFiles} unique files.`
144144

145145
reducedIssues.push(newIssue)
146146
}

src/bids/types/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This module contains classes for representing BIDS JSON files, including {@link BidsJsonFile} and {@link BidsSidecar}.
33
*
4-
* @module json
4+
* @module bids/types/json
55
*/
66
import isPlainObject from 'lodash/isPlainObject'
77

src/bids/types/tsv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This module contains classes for representing BIDS TSV files and their components.
33
*
4-
* @module tsv
4+
* @module bids/types/tsv
55
*/
66
import isPlainObject from 'lodash/isPlainObject'
77

src/bids/validator/sidecarValidator.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/** This module holds the sidecar validator class.
2+
* @module bids/validator/sidecarValidator
3+
*/
4+
15
import { BidsHedIssue } from '../types/issues'
26
import ParsedHedString from '../../parser/parsedHedString'
37
import { generateIssue, IssueError, updateIssueParameters } from '../../issues/issues'

src/bids/validator/tsvValidator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/** This module holds the tsv validator class.
2+
* @module bids/validator/tsvValidator
3+
*/
14
import { BidsHedIssue } from '../types/issues'
25
import { BidsTsvElement, BidsTsvRow } from '../types/tsv'
36
import { BidsValidator } from './validator'

0 commit comments

Comments
 (0)