"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "markup/org/convert_test.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

convert_test.go  (hugo-0.80.0):convert_test.go  (hugo-0.81.0)
skipping to change at line 20 skipping to change at line 20
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package org package org
import ( import (
"testing" "testing"
"github.com/gohugoio/hugo/common/loggers" "github.com/gohugoio/hugo/common/loggers"
"github.com/spf13/viper"
"github.com/gohugoio/hugo/markup/converter" "github.com/gohugoio/hugo/markup/converter"
qt "github.com/frankban/quicktest" qt "github.com/frankban/quicktest"
) )
func TestConvert(t *testing.T) { func TestConvert(t *testing.T) {
c := qt.New(t) c := qt.New(t)
p, err := Provider.New(converter.ProviderConfig{Logger: loggers.NewErrorL p, err := Provider.New(converter.ProviderConfig{
ogger()}) Logger: loggers.NewErrorLogger(),
Cfg: viper.New(),
})
c.Assert(err, qt.IsNil) c.Assert(err, qt.IsNil)
conv, err := p.New(converter.DocumentContext{}) conv, err := p.New(converter.DocumentContext{})
c.Assert(err, qt.IsNil) c.Assert(err, qt.IsNil)
b, err := conv.Convert(converter.RenderContext{Src: []byte("testContent") }) b, err := conv.Convert(converter.RenderContext{Src: []byte("testContent") })
c.Assert(err, qt.IsNil) c.Assert(err, qt.IsNil)
c.Assert(string(b.Bytes()), qt.Equals, "<p>testContent</p>\n") c.Assert(string(b.Bytes()), qt.Equals, "<p>testContent</p>\n")
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)