From 483fb10077da7c9c068e3b05742cc94cae3631cd Mon Sep 17 00:00:00 2001 From: Fredrik Ohlin Date: Mon, 28 May 2018 08:34:38 +0200 Subject: [PATCH] feat: add 8388-1 Varbergs sparbank (#38) Found in the wild and previously not caught by this library. See: https://www.varbergssparbank.se/kontakt-oppettider/varberg-huvudkontor/ --- lib/__tests__/index.spec.ts | 4 ++++ lib/clearingNumbers.ts | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/lib/__tests__/index.spec.ts b/lib/__tests__/index.spec.ts index bc3bbbd0..30979ecf 100644 --- a/lib/__tests__/index.spec.ts +++ b/lib/__tests__/index.spec.ts @@ -386,6 +386,10 @@ describe('#bankName', () => { it('Sölvesborg-Mjällby sparbank', () => { expect(bankName('8321-2')).toEqual('Sölvesborg-Mjällby sparbank') }) + + it('Varbergs sparbank', () => { + expect(bankName('8388-1')).toEqual('Varbergs sparbank') + }) }) describe('Teller Branch Norway', () => { diff --git a/lib/clearingNumbers.ts b/lib/clearingNumbers.ts index db0ca7ea..50d5b49b 100644 --- a/lib/clearingNumbers.ts +++ b/lib/clearingNumbers.ts @@ -836,6 +836,15 @@ export default [ }, ], }, + { + bank: 'Varbergs sparbank', + ranges: [ + { + max: '8388-1', + min: '8388-1', + }, + ], + }, { bank: 'VP Securities A/S', ranges: [