UNPKG

camtjs

Version:

JS package to work with CAMT transactions

15 lines (14 loc) 512 B
import { ATTRIBUTE_MAPPING, renameTags } from './camt052-utils.js'; describe('camt052-utils', () => { describe('renameTags', () => { it('should rename mapped tags', () => { Object.entries(ATTRIBUTE_MAPPING).forEach((entry) => { const [key, value] = entry; expect(renameTags(key)).toEqual(value); }); }); it('should not rename unmapped tags', () => { expect(renameTags('foo')).toEqual('foo'); }); }); });