Skip to content
This repository was archived by the owner on Dec 17, 2018. It is now read-only.

Commit 854741a

Browse files
committed
Add test for missing closing bracket (#10)
1 parent 9f8d311 commit 854741a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,4 +539,8 @@ describe("Errors", function() {
539539
expect(function(){ parse('{NUM, plural, offset:-4 other{a}}'); }).to.throwError();
540540
});
541541

542+
it("should require closing bracket", function(){
543+
const message = '{count, plural, one {car} other {cars}'
544+
expect(function(){ parse(message); }).to.throwError();
545+
})
542546
});

0 commit comments

Comments
 (0)