diff --git a/packages/next/src/config/__tests__/withHeadlessConfig.ts b/packages/next/src/config/__tests__/withHeadlessConfig.ts deleted file mode 100644 index baae8e358..000000000 --- a/packages/next/src/config/__tests__/withHeadlessConfig.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { toStringWithFunctions } from '../withHeadlessConfig'; - -describe('toStringWithFunctions', () => { - it('converts regular objects to strings', () => { - const obj = { - a: 'a', - b: 'b', - c: 'c', - }; - expect(toStringWithFunctions(obj)).toMatchInlineSnapshot(` - "{ - "a": "a", - "b": "b", - "c": "c" - }" - `); - }); - it('converts functions to strings', () => { - const obj = { - a: 'test', - fn: () => { - // eslint-disable-next-line no-console - console.log('test'); - }, - nested: { - fn: () => {}, - }, - }; - expect(toStringWithFunctions(obj)).toMatchInlineSnapshot(` - "{ - "a": "test", - "fn": () => { - // eslint-disable-next-line no-console - console.log('test'); - }, - "nested": { - "fn": () => { } - } - }" - `); - }); -});