Skip to content

Commit

Permalink
Add Egypt specifications (version 86 of the IBAN Registry, released i…
Browse files Browse the repository at this point in the history
…n January 2020), update tests
  • Loading branch information
davidmsync committed Jan 24, 2020
1 parent 4978953 commit 36a6621
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions iban.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@
addSpecification(new Specification("DK", 18, "F04F09F01", "DK5000400440116243"));
addSpecification(new Specification("DO", 28, "U04F20", "DO28BAGR00000001212453611324"));
addSpecification(new Specification("EE", 20, "F02F02F11F01", "EE382200221020145685"));
addSpecification(new Specification("EG", 29, "F04F04F17", "EG800002000156789012345180002"));
addSpecification(new Specification("ES", 24, "F04F04F01F01F10", "ES9121000418450200051332"));
addSpecification(new Specification("FI", 18, "F06F07F01", "FI2112345600000785"));
addSpecification(new Specification("FO", 18, "F04F09F01", "FO6264600001631634"));
Expand Down
4 changes: 4 additions & 0 deletions test/ibanTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ describe('IBAN', function(){
expect(IBAN.isValid(num)).to.be.false;
});
});

it('should return true for a valid Egypt IBAN', function(){
expect(IBAN.isValid('EG800002000156789012345180002')).to.be.true;
});
});

describe('.electronicFormat', function(){
Expand Down

0 comments on commit 36a6621

Please sign in to comment.