Skip to content

Commit b884aec

Browse files
committed
Add test case for two undescores in token value
1 parent 66c9e78 commit b884aec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ describe('jwt library wrapper (jwt.js)', function () {
1616
expect(result.error).to.be.equal(null);
1717
expect(result.result).to.be(true);
1818
});
19+
it('should decode with two underscores', function () {
20+
var result = window.decode('eyI_IjoiYWE_In0');
21+
expect(result.error).to.be.equal(null);
22+
expect(result.result).to.be('{\n "?": "aa?"\n}');
23+
});
1924
});

0 commit comments

Comments
 (0)