check ledger output a little bit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"local/storage"
|
||||
"path"
|
||||
@@ -18,7 +19,7 @@ func TestUploadLedger(t *testing.T) {
|
||||
ID: uuid.New().String(),
|
||||
Bank: Chase,
|
||||
Amount: "1.10",
|
||||
Vendor: "vendor",
|
||||
Vendor: "my's totally realistic!!! VENDOR 11",
|
||||
Date: "today",
|
||||
},
|
||||
},
|
||||
@@ -39,6 +40,9 @@ func TestUploadLedger(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !bytes.Contains(b, []byte("mystotallyrealisticVENDOR11")) {
|
||||
t.Fatal(string(b))
|
||||
}
|
||||
t.Logf("\n%s", b)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user