Commit 537d954
test: increase coverage of string-decoder
Make use of Arrow Function.
Add normalizeencoding's test.
normalizeEncoding:
https://github.com/nodejs/node/blob/master/lib/string_decoder.js#L9
PR-URL: #10863
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 659428f commit 537d954Copy full SHA for 537d954
File tree
Expand file treeCollapse file tree
2 files changed
+13
-9
lines changedOpen diff view settings
Filter options
- test/parallel
Expand file treeCollapse file tree
2 files changed
+13
-9
lines changedOpen diff view settings
Collapse file
test/parallel/test-string-decoder-end.js
Copy file name to clipboardExpand all lines: test/parallel/test-string-decoder-end.js+3-7Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
12 | | - |
13 | | - |
| 11 | + |
14 | 12 | |
15 | 13 | |
16 | 14 | |
17 | | - |
18 | | - |
19 | | - |
| 15 | + |
20 | 16 | |
21 | 17 | |
22 | 18 | |
| ||
25 | 21 | |
26 | 22 | |
27 | 23 | |
28 | | - |
| 24 | + |
29 | 25 | |
30 | 26 | |
31 | 27 | |
|
Collapse file
test/parallel/test-string-decoder.js
Copy file name to clipboardExpand all lines: test/parallel/test-string-decoder.js+10-2Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
104 | 104 | |
105 | 105 | |
106 | 106 | |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
107 | 115 | |
108 | 116 | |
109 | 117 | |
| ||
116 | 124 | |
117 | 125 | |
118 | 126 | |
119 | | - |
| 127 | + |
120 | 128 | |
121 | 129 | |
122 | | - |
| 130 | + |
123 | 131 | |
124 | 132 | |
125 | 133 | |
|
0 commit comments