Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Jan 7, 2025
1 parent e8e9eee commit f6b607a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { ColumnMapping } from './ColumnMapping';

describe('ColumnMapping', () => {
it('should create a mapping from columns', () => {
const sourceColumns = ['date', 'location'];
const sourceColumns = ['date', 'location', 'Foo Bar'];
const targetColumns = new Map([
['date', undefined],
['location', undefined],
['foo', 'Foo Bar'],
]);

const mapping = ColumnMapping.fromColumns(sourceColumns, targetColumns);
Expand All @@ -16,6 +17,7 @@ describe('ColumnMapping', () => {
expect(entries).toEqual([
['date', undefined, 'date'],
['location', undefined, 'location'],
['foo', 'Foo Bar', 'Foo Bar']
]);
});

Expand Down

0 comments on commit f6b607a

Please sign in to comment.