Skip to content

Commit

Permalink
test: add test for patch link create == false
Browse files Browse the repository at this point in the history
  • Loading branch information
potsables committed Dec 11, 2018
1 parent ed4d201 commit 8e415ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,12 @@ func TestPatch_rmLink(t *testing.T) {
func TestPatchLink(t *testing.T) {
is := is.New(t)
s := NewShell(shellUrl)

newRoot, err := s.PatchLink(examplesHash, "about", "QmUXTtySmd7LD4p6RG6rZW6RuUuPZXTtNMmRQ6DSQo3aMw", true)
is.Nil(err)
is.Equal(newRoot, "QmVfe7gesXf4t9JzWePqqib8QSifC1ypRBGeJHitSnF7fA")
newRoot, err = s.PatchLink(examplesHash, "about", "QmUXTtySmd7LD4p6RG6rZW6RuUuPZXTtNMmRQ6DSQo3aMw", false)
is.Nil(err)
is.Equal(newRoot, "QmVfe7gesXf4t9JzWePqqib8QSifC1ypRBGeJHitSnF7fA")
}

func TestResolvePath(t *testing.T) {
Expand Down

0 comments on commit 8e415ea

Please sign in to comment.