Skip to content

Commit

Permalink
Test fixes, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cortesi committed Feb 2, 2016
1 parent 13806b1 commit 7080539
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions README.md
Expand Up @@ -8,9 +8,7 @@ If you use modd, you should also look at
Devd integrates with modd, allowing you to trigger in-browser livereload with
modd.

# Examples

File | Description
Example | Description
-------------------------------------------- | -------
[frontend.conf](./examples/frontend.conf) | A front-end project using React + Browserify + Babel. Modd and devd replace many functions of Gulp/Grunt.
[go.conf](./examples/go.conf) | Run Go tests on change.
Expand Down
8 changes: 4 additions & 4 deletions varcmd/varcmd_test.go
Expand Up @@ -54,11 +54,11 @@ func TestVarCmd(t *testing.T) {
b := conf.Block{}
b.Include = []string{"tdir/**"}
vc := VarCmd{&b, nil, map[string]string{}}
ret, err := vc.Render("@mods")
ret, err := vc.Render("@mods @dirmods")
if err != nil {
t.Fatal("unexpected error")
}
if ret != `"tdir/tfile"` {
if ret != `"./tdir/tfile" "./tdir"` {
t.Errorf("Unexpected return: %s", ret)
}

Expand All @@ -67,11 +67,11 @@ func TestVarCmd(t *testing.T) {
&watch.Mod{Changed: []string{"foo"}},
map[string]string{},
}
ret, err = vc.Render("@mods")
ret, err = vc.Render("@mods @dirmods")
if err != nil {
t.Fatal("unexpected error")
}
if ret != `"foo"` {
if ret != `"./foo" "./."` {
t.Errorf("Unexpected return: %s", ret)
}
}
Expand Down

0 comments on commit 7080539

Please sign in to comment.