fix/ members csv uploading [WTEL-4865] #583
Annotations
5 errors and 1 warning
src/modules/_shared/upload-csv-popup/mixins/__tests__/uploadCSVMixin.spec.js > UploadCsvMixin > parses and saves simple csv:
src/modules/_shared/upload-csv-popup/mixins/__tests__/uploadCSVMixin.spec.js#L63
AssertionError: expected "spy" to be called with arguments: [ [ …(2) ] ]
Received:
1st spy call:
Array [
Array [
Object {
- "age": "30",
- "name": "John",
+ "age": Object {
+ "mappingIndexes": null,
+ "value": "30",
+ },
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "John",
+ },
},
Object {
- "age": "25",
- "name": "Jane",
+ "age": Object {
+ "mappingIndexes": null,
+ "value": "25",
+ },
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "Jane",
+ },
},
],
]
Number of calls: 1
❯ src/modules/_shared/upload-csv-popup/mixins/__tests__/uploadCSVMixin.spec.js:63:26
|
src/modules/_shared/upload-csv-popup/mixins/__tests__/uploadCSVMixin.spec.js > UploadCsvMixin > parsing of csv with multiple columns selected to required field:
src/modules/_shared/upload-csv-popup/mixins/__tests__/uploadCSVMixin.spec.js#L157
AssertionError: expected "spy" to be called with arguments: [ [ { name: 'John', …(1) }, …(1) ] ]
Received:
1st spy call:
Array [
Array [
Object {
- "age": Array [
+ "age": Object {
+ "mappingIndexes": Array [
+ null,
+ 1,
+ ],
+ "value": Array [
"30",
],
- "name": "John",
+ },
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "John",
+ },
},
Object {
- "age": Array [
+ "age": Object {
+ "mappingIndexes": Array [
+ 0,
+ null,
+ ],
+ "value": Array [
"25",
],
- "name": "Jane",
+ },
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "Jane",
+ },
},
],
]
Number of calls: 1
❯ src/modules/_shared/upload-csv-popup/mixins/__tests__/uploadCSVMixin.spec.js:157:26
|
src/modules/_shared/upload-csv-popup/scripts/__tests__/normalizeCSVData.spec.js > normalizeCSVData > normalizes simple data:
src/modules/_shared/upload-csv-popup/scripts/__tests__/normalizeCSVData.spec.js#L49
AssertionError: expected [ { name: { …(2) }, …(1) }, …(1) ] to deeply equal [ { name: 'John', …(1) }, …(1) ]
- Expected
+ Received
Array [
Object {
- "name": "John",
- "phone": Array [
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "John",
+ },
+ "phone": Object {
+ "mappingIndexes": Array [
+ 0,
+ 1,
+ ],
+ "value": Array [
"123",
"456",
],
+ },
},
Object {
- "name": "Jane",
- "phone": Array [
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "Jane",
+ },
+ "phone": Object {
+ "mappingIndexes": Array [
+ 0,
+ 1,
+ ],
+ "value": Array [
"789",
"012",
],
+ },
},
]
❯ src/modules/_shared/upload-csv-popup/scripts/__tests__/normalizeCSVData.spec.js:49:20
|
src/modules/_shared/upload-csv-popup/scripts/__tests__/normalizeCSVData.spec.js > normalizeCSVData > succeeds at normalizing data with multiple columns selected to required field,
if one of them is empty:
src/modules/_shared/upload-csv-popup/scripts/__tests__/normalizeCSVData.spec.js#L108
AssertionError: expected [ { name: { …(2) }, …(1) }, …(1) ] to deeply equal [ …(2) ]
- Expected
+ Received
Array [
Object {
- "name": "name",
- "phone": Array [
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "name",
+ },
+ "phone": Object {
+ "mappingIndexes": Array [
+ 0,
+ null,
+ ],
+ "value": Array [
"123",
],
+ },
},
Object {
- "name": "name",
- "phone": Array [
+ "name": Object {
+ "mappingIndexes": null,
+ "value": "name",
+ },
+ "phone": Object {
+ "mappingIndexes": Array [
+ 0,
+ 1,
+ ],
+ "value": Array [
"123",
"012",
],
+ },
},
]
❯ src/modules/_shared/upload-csv-popup/scripts/__tests__/normalizeCSVData.spec.js:108:20
|
test
Process completed with exit code 1.
|
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|