Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
started adding some simple user tests, without enough coffee
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrichardsmith committed Aug 19, 2016
1 parent db2faff commit c5af298
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions users/users_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package users

import (
"reflect"
"testing"
)

func TestAddLinksAdd(t *testing.T) {
domain = "mydomain"
a := Address{ID: "test"}
a.AddLinks()
h := Href{"http://mydomain/addresses/test"}
if !reflect.DeepEqual(a.Links["address"], h) {
t.Error("expected equal address links")
}

}

func TestAddLinksCard(t *testing.T) {
domain = "mydomain"
c := Card{ID: "test"}
c.AddLinks()
h := Href{"http://mydomain/cards/test"}
if !reflect.DeepEqual(c.Links["card"], h) {
t.Error("expected equal address links")
}

}

func TestMaskCC(t *testing.T) {

}

0 comments on commit c5af298

Please sign in to comment.