You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
268 B

  1. package models
  2. /*
  3. func TestCreateUser(t *testing.T) {
  4. db, err := database.New("127.0.0.1:27017", "gogametests")
  5. assert.Nil(t, err)
  6. user, err := NewUser(db, "user00", "password00", "user00@email.com")
  7. assert.Nil(t, err)
  8. assert.Equal(t, user.Name, "user00")
  9. }
  10. */