fix: unit tests
This commit is contained in:
parent
9efa40879f
commit
740cf8979a
6 changed files with 16 additions and 264 deletions
|
|
@ -7,8 +7,8 @@ import (
|
|||
func TestNewNanoID(t *testing.T) {
|
||||
id := NewNanoID()
|
||||
|
||||
if len(id) != 12 {
|
||||
t.Errorf("Expected ID length of 12, got %d", len(id))
|
||||
if len(id) != 16 {
|
||||
t.Errorf("Expected ID length of 16, got %d", len(id))
|
||||
}
|
||||
|
||||
if id == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue