Skip to content

Commit a38ce09

Browse files
committed
update snapshots, fix test import paths
1 parent 3840e3e commit a38ce09

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

test/helpers/defaultOptions.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, test } from 'vitest'
2-
import { defaultOptions } from '../../src/helpers'
2+
import { defaultOptions } from '../../src/build/helpers'
33

44
describe('defaultOptions', () => {
55
test('Provides sane defaults', () => {

test/helpers/validateOptions.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, test } from 'vitest'
2-
import { validateOptions } from '../../src/helpers'
2+
import { validateOptions } from '../../src/build/helpers'
33

44
describe('validateOptions', () => {
55
test('Throws an error if GraphQL endpoint is missing.', () => {

test/runtime/serverHandler/__snapshots__/mutation.test.ts.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`defineEventHandler > Should handle a valid mutation 1`] = `
77
"endpoint": "http//localhost/graphql",
88
"options": {
99
"body": {
10-
"operationName": undefined,
10+
"operationName": "barfoo",
1111
"query": "Mutation",
1212
"variables": {},
1313
},

test/runtime/serverHandler/__snapshots__/query.test.ts.snap

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`defineEventHandler > Should correctly handle variables. 1`] = `
77
"endpoint": "http//localhost/graphql",
88
"options": {
99
"body": {
10-
"operationName": undefined,
10+
"operationName": "foobar",
1111
"query": "Query",
1212
"variables": {
1313
"variables": "{"variable":"one"}",
@@ -25,7 +25,7 @@ exports[`defineEventHandler > Should handle a valid query 1`] = `
2525
"endpoint": "http//localhost/graphql",
2626
"options": {
2727
"body": {
28-
"operationName": undefined,
28+
"operationName": "foobar",
2929
"query": "Query",
3030
"variables": {
3131
"variables": "{}",
@@ -43,7 +43,7 @@ exports[`defineEventHandler > Should handle an invalid operation 1`] = `
4343
"endpoint": "http//localhost/graphql",
4444
"options": {
4545
"body": {
46-
"operationName": undefined,
46+
"operationName": "foobar",
4747
"query": "Query",
4848
"variables": {
4949
"variables": "{}",

0 commit comments

Comments
 (0)