Skip to content

Commit

Permalink
Fix tests [WTEL-4865]
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Zaritskyi committed Sep 11, 2024
1 parent ef8ea5e commit ee1fbb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ describe('UploadCsvMixin', () => {
expect(saveCallback).toHaveBeenCalledWith([
{
name: 'John',
age: ['30'],
age: ['', '30'],
},
{
name: 'Jane',
age: ['25'],
age: ['25', ''],
},
]);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('normalizeCSVData', () => {
expect(false).toBe(true); // reject test if no error
});

it(`succeeds at normalizing data with multiple columns selected to required field,
it(`returns correct fields for mapping, including empty fields,
if one of them is empty`, () => {
const input = [
{
Expand All @@ -97,7 +97,7 @@ describe('normalizeCSVData', () => {
const output = [
{
name: 'name',
phone: ['123'],
phone: ['123', ''],
},
{
name: 'name',
Expand Down

0 comments on commit ee1fbb6

Please sign in to comment.