fix test model
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"gitea.tecamino.com/paadi/html2pdf/converter"
|
||||
"gitea.tecamino.com/paadi/html2pdf/models"
|
||||
)
|
||||
|
||||
func TestConvert(t *testing.T) {
|
||||
@@ -27,14 +28,14 @@ func TestConvertFiles(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
var input []converter.File
|
||||
var input []models.File
|
||||
for _, f := range files {
|
||||
ext := filepath.Ext(f.Name())
|
||||
if ext != ".html" {
|
||||
continue
|
||||
}
|
||||
|
||||
input = append(input, converter.File{
|
||||
input = append(input, models.File{
|
||||
Input: filepath.Join(rootPath, f.Name()),
|
||||
Output: strings.Replace(f.Name(), ext, ".pdf", 1),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user