]> git.ardis.lu - csvio/commitdiff
Delete unnecessary option
authorArdis Lu <ardisglu@gmail.com>
Sat, 27 Sep 2025 05:59:06 +0000 (22:59 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sat, 27 Sep 2025 05:59:06 +0000 (22:59 -0700)
`type: 'string'` has been the default value since v0.1.3.

test/normalization.test.js

index 4f74bfcc5c95aee934911b19b483ee10d575c3b5..df5b9d4b1bdecb5e3f14210ba00f86647da119e9 100644 (file)
@@ -188,8 +188,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['123', 'a', '123', '123', 'b']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -203,11 +203,11 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['a', 'b']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' },
-        { name: 'extra1', type: 'string' },
-        { name: 'extra2', type: 'string' },
-        { name: 'extra3', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' },
+        { name: 'extra1' },
+        { name: 'extra2' },
+        { name: 'extra3' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -221,9 +221,9 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['c', 'a', 'b']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' },
-        { name: 'columnC', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' },
+        { name: 'columnC' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -237,8 +237,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['a', 'b']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string', displayName: 'Column A' },
-        { name: 'columnB', type: 'string', displayName: 'Column B' }
+        { name: 'columnA', displayName: 'Column A' },
+        { name: 'columnB', displayName: 'Column B' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -329,8 +329,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['', '']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -348,8 +348,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['', '']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' }
       ], { passthroughEmptyRows: true }))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -371,8 +371,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['', ''],
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -390,8 +390,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['', '']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' }
       ], { passthroughEmptyRows: true }))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -407,8 +407,8 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['a', '', 'b', '', '']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'columnA', type: 'string' },
-        { name: 'columnB', type: 'string' }
+        { name: 'columnA' },
+        { name: 'columnB' }
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -424,9 +424,9 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['', '', 's3']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'sparse1', type: 'string' },
-        { name: 'sparse2', type: 'string' },
-        { name: 'sparse3', type: 'string' },
+        { name: 'sparse1' },
+        { name: 'sparse2' },
+        { name: 'sparse3' },
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
@@ -445,10 +445,10 @@ suite('CSVNormalizer', { concurrency: true }, () => {
       ['c', 'm', 'm', 'm']
     ])
       .pipeThrough(new CSVNormalizer([
-        { name: 'common', type: 'string' },
-        { name: 'maybe1', type: 'string' },
-        { name: 'maybe2', type: 'string' },
-        { name: 'maybe3', type: 'string' },
+        { name: 'common' },
+        { name: 'maybe1' },
+        { name: 'maybe2' },
+        { name: 'maybe3' },
       ]))
       .pipeThrough(new CSVDenormalizer())
       .pipeTo(csvStreamEqualWritable([
This page took 0.040094 seconds and 4 git commands to generate.