package transform import ( "bytes" "testing" ) func TestChainZeroTransformers(t *testing.T) { tr := NewChain() in := new(bytes.Buffer) out := new(bytes.Buffer) if err := tr.Apply(in, out); err != nil { t.Errorf("A zero transformer chain returned an error.") } } func TestChainOneTransformer(t *testing.T) { tr := NewChain(&AbsURL{BaseURL: "http://base"}) apply(t, tr, abs_url_tests) } const H5_JS_CONTENT_ABS_URL_WITH_NAV = "