feat(tests): add unit-tests

Add unit-tests for `sheets.Load`.
This commit is contained in:
Chris Lane
2020-11-11 19:33:31 -05:00
parent 6c6753b35c
commit 3f4d4bddb2
7 changed files with 78 additions and 3 deletions

View File

@ -13,7 +13,7 @@ func Path(filename string) string {
// determine the path of this file during runtime
_, thisfile, _, _ := runtime.Caller(0)
// compute the config path
// compute the mock path
file, err := filepath.Abs(
path.Join(
filepath.Dir(thisfile),
@ -22,7 +22,7 @@ func Path(filename string) string {
),
)
if err != nil {
panic(fmt.Errorf("failed to resolve config path: %v", err))
panic(fmt.Errorf("failed to resolve mock path: %v", err))
}
return file