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: job_error_test.go
    path of file: ./repos/chainlink/core/web/resolver
    
    the code of the file until where you have to start completion: package resolver

import (
	"database/sql"
	"encoding/json"
	"testing"

	gqlerrors "github.com/graph-gophers/graphql-go/errors"
	"github.com/pkg/errors"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/mock"

	"github.com/smartcontractkit/chainlink/v2/core/services/job"
	"github.com/smartcontractkit/chainlink/v2/core/utils/stringutils"
)

// JobErrors are only embedded on the job and are not fetchable by it's own id,
// so we test the job error re
    
func TestResolver_JobErrors(t *testing.T) {
	var (
		id      = int32(1)
		errorID = int64(200)
	)

	testCases := []GQLTestCase{
		{
			name:          "success",
			authenticated: true,
			before: func(f *gqlTestFramework) {
				f.App.On("JobORM").Return(f.Mocks.jobORM)
				f.Mocks.jobORM.On("FindJobWithoutSpecErrors", id).Return(job.Job{
					ID: int32(1),
				}, nil)
				f.Mocks.jobORM.On("FindSpecErrorsByJobIDs", []int32{1}, mock.Anything).Return([]job.SpecError{
					{
						ID:          errorID,
						Description: "no contract code at given address",
						Occurrences: 1,
						CreatedAt:   f.Timestamp(),
						JobID:       int32(1),
					},
				}, nil)
			},
			query: `
				query GetJob {
					job(id: "1") {
						... on Job {
							errors {
								id
								description
								occurrences
								createdAt
							}
						}
					}
				}
			`,
			result: `
				{
					"job": {
						"errors": [{
							"id": "200",
							"description": "no contract code at given address",
							"occurrences": 1,
							"createdAt": "2021-01-01T00:00:00Z"
						}]
					}
				}
			`,
		},
	}

	RunGQLTests(t, testCases)
}