You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: js_test.go
    path of file: ./repos/buffalo/render
    
    the code of the file until where you have to start completion: package render

import (
	"bytes"
	"strings"
	"testing"

	"github.com/psanford/memfs"
	"github.com/stretchr/testify/require"
)

const jsLayout = "layout.js"
const jsAltLayout = "alt_layout.plush.js"
const jsTemplate = "my-template.js"

func Test_JavaScript_WithoutLayout(t *testing.T) {
	r := require.New(t)

	rootFS := memfs.Ne
    
func Test_JavaScript_HTML_Partial(t *testing.T) {
	const tmpl = "let a = \"<%= partial(\"part.html\") %>\""
	const part = `<div id="foo">
	<p>hi</p>
</div>`

	r := require.New(t)

	rootFS := memfs.New()
	r.NoError(rootFS.WriteFile(jsTemplate, []byte(tmpl), 0644))
	r.NoError(rootFS.WriteFile("_part.html", []byte(part), 0644))

	e := NewEngine()
	e.TemplatesFS = rootFS

	h := e.JavaScript(jsTemplate)
	r.Equal("application/javascript", h.ContentType())
	bb := &bytes.Buffer{}

	r.NoError(h.Render(bb, Data{}))
	r.Contains(bb.String(), `id`)
	r.Contains(bb.String(), `foo`)

	// To check it has escaped the partial
	r.NotContains(bb.String(), `<div id="foo">`)
}