Skip to content

Commit

Permalink
fix(tests): update function calls after renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
quickstar committed Apr 10, 2022
1 parent 5b0b536 commit 9854b72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/writer/writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"
"testing"

"github.com/djboris9/rea/pkg/odf"
"github.com/djboris9/rea/internal/odf"
"github.com/stretchr/testify/require"
)

Expand All @@ -18,11 +18,12 @@ func TestTemplateODT(t *testing.T) {
require.Nil(t, err)

out := bytes.NewBuffer([]byte(""))
_, err = Template(tmpl, &TemplateConfig{}, out)
_, err = Write(tmpl, &TemplateConfig{}, out)
require.Nil(t, err)

// Readout content.xml and new mimetype
doc, err := odf.New(bytes.NewReader(out.Bytes()), int64(out.Len()))
require.Nil(t, err)
require.Equal(t, "application/vnd.oasis.opendocument.text", doc.MIMEType()) // `text-template` is now `text`

contentFD, err := doc.Open("content.xml")
Expand Down

0 comments on commit 9854b72

Please sign in to comment.