Skip to content

Commit a078182

Browse files
committed
test: comments
1 parent 05ad18c commit a078182

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/node/parser/on_demand/parse_to_elements.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ describe('parseToElements()', () => {
7474
});
7575

7676
const sizedTypes = [
77+
// The array is in order of [TypeByte, ElementName, Int32Size, ElementValue]
7778
{ type: 'string', input: ['02', '6100', '00000080', '6100'] },
7879
{ type: 'binary', input: ['05', '6100', '00000080', '01'] },
7980
{ type: 'dbpointer', input: ['05', '6100', '00000080', '6100', '00'.repeat(12)] },
@@ -97,6 +98,7 @@ describe('parseToElements()', () => {
9798

9899
context('when an sized element reports a size larger than document', () => {
99100
const sizedTypes = [
101+
// The array is in order of [TypeByte, ElementName, Int32Size, ElementValue]
100102
{ type: 'string', input: ['02', '6100', '00000070', '6100'] },
101103
{ type: 'binary', input: ['05', '6100', '00000070', '01'] },
102104
{ type: 'dbpointer', input: ['05', '6100', '00000070', '6100', '00'.repeat(12)] },
@@ -132,7 +134,7 @@ describe('parseToElements()', () => {
132134
});
133135
});
134136

135-
context('when given an regexp', () => {
137+
context('when given a regexp', () => {
136138
context('with no null terminator for the pattern', () => {
137139
it('throws an error', () => {
138140
const regexp = [
@@ -147,7 +149,7 @@ describe('parseToElements()', () => {
147149
});
148150
});
149151

150-
context('with no null terminator for the pattern', () => {
152+
context('with no null terminator for the flags', () => {
151153
it('throws an error', () => {
152154
const regexp = [
153155
Buffer.from('abc').toString('hex'),

0 commit comments

Comments
 (0)