Skip to content

Commit

Permalink
Rename and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tino committed Dec 6, 2017
1 parent 81ea194 commit 2a09ecb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
File renamed without changes.
19 changes: 19 additions & 0 deletions noroute/store_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package noroute

import (
"testing"
)

func TestStoreSetGet(t *testing.T) {
got := GetHTML()
if got != "" {
t.Fatalf("Expected unset noroute html to be an empty string, got %s", got)
}

want := "<blink>Fancy!</blink>"
SetHTML(want)
got = GetHTML()
if got != want {
t.Fatalf("got %s, want %s", got, want)
}
}

0 comments on commit 2a09ecb

Please sign in to comment.