Skip to content

Commit

Permalink
update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Nov 12, 2023
1 parent 9760a4c commit 210407f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,13 @@ func TestBlogsync(t *testing.T) {
if err := os.Chtimes(entryFile, oldTime, oldTime); err != nil {
t.Fatal(err)
}
if _, err := blogsync("fetch", entryFile); err != nil {
fetchedFile, err := blogsync("fetch", entryFile)
if err != nil {
t.Error(err)
}
if fetchedFile != entryFile {
t.Errorf("unexpected fetched file: %s", fetchedFile)
}

t.Log("When a draft is published, a URL is issued and the file is saved in the corresponding location")
publishedFile, err := blogsync("push", "--publish", entryFile)
Expand Down

0 comments on commit 210407f

Please sign in to comment.