split up library and removed Stop() panic when called twice

This commit is contained in:
ston1th 2018-09-12 23:35:03 +02:00
commit 826d035d3e
4 changed files with 117 additions and 100 deletions

View file

@ -58,6 +58,11 @@ func TestValidate(t *testing.T) {
if err != nil {
t.Error(err)
}
// should not panic
err = jwt.Stop()
if err != nil {
t.Error(err)
}
}
func TestNoBlacklist(t *testing.T) {