Skip to content

Commit bdf496d

Browse files
committed
Update codes
1 parent 770e5ff commit bdf496d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/tsv.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ var channelsFile = {
178178
var tsv = 'header-one\ttype\tunits\n' +
179179
'value-one\tvalue-two\tvalue-three';
180180
validate.TSV.TSV(channelsFile, tsv, [], function (issues) {
181-
assert(issues.length === 1 && issues[0].code === 70);
181+
assert(issues.length === 1 && issues[0].code === 71);
182182
});
183183
});
184184

185185
it("should not allow channels.tsv files without type column", function () {
186186
var tsv = 'name\theader-two\tunits\n' +
187187
'value-one\tvalue-two\tvalue-three';
188188
validate.TSV.TSV(channelsFile, tsv, [], function (issues) {
189-
assert(issues.length === 1 && issues[0].code === 71);
189+
assert(issues.length === 1 && issues[0].code === 72);
190190
});
191191
});
192192

utils/issues/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ module.exports = {
362362
severity: 'error',
363363
reason: "Second column of the channels file must be named 'type'"
364364
},
365-
72: {
365+
73: {
366366
key: 'CHANNELS_COLUMN_UNITS',
367367
severity: 'error',
368368
reason: "Third column of the channels file must be named 'units'"

validators/tsv.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ var TSV = function TSV (file, contents, fileList, callback) {
167167

168168
// channels.tsv
169169
if (file.name.endsWith('_channels.tsv')) {
170-
checkheader('name', 0, file, 70);
171-
checkheader('type', 1, file, 71);
172-
checkheader('units', 2, file, 72);
170+
checkheader('name', 0, file, 71);
171+
checkheader('type', 1, file, 72);
172+
checkheader('units', 2, file, 73);
173173
}
174174
// check partcipants.tsv for age 89+
175175

0 commit comments

Comments
 (0)