Skip to content

Commit

Permalink
add test for blogsync fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Nov 12, 2023
1 parent 4e15a38 commit 526aaa1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ func TestBlogsync(t *testing.T) {
}
entryFile = draftFile

t.Log("Check if the draft is fetched and saved in the proper location")
if _, err := blogsync("fetch", entryFile); err != nil {
t.Error(err)
}

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)
if err != nil {
Expand Down

0 comments on commit 526aaa1

Please sign in to comment.