From 9854b725b9436ca32d8a5e0f47d315bc1935178c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=A4derach?= Date: Sun, 10 Apr 2022 09:53:02 +0200 Subject: [PATCH] fix(tests): update function calls after renaming --- internal/writer/writer_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/writer/writer_test.go b/internal/writer/writer_test.go index 7add4a7..b072a21 100644 --- a/internal/writer/writer_test.go +++ b/internal/writer/writer_test.go @@ -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" ) @@ -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")