未验证 提交 62633b1a 编写于 作者: A Anton Rieder 提交者: GitHub

Fix grammar in isSerializableProps (#19072)

I believe this should read ["altogether"](https://www.merriam-webster.com/dictionary/altogether) not "all together".
上级 5afed079
......@@ -64,7 +64,7 @@ export function isSerializableProps(
page,
method,
path,
'`undefined` cannot be serialized as JSON. Please use `null` or omit this value all together.'
'`undefined` cannot be serialized as JSON. Please use `null` or omit this value.'
)
}
......
......@@ -101,7 +101,7 @@ Reason: \`function\` cannot be serialized as JSON. Please only return JSON seria
expect(() => isSerializableProps('/', 'test', { toplevel: undefined }))
.toThrowErrorMatchingInlineSnapshot(`
"Error serializing \`.toplevel\` returned from \`test\` in \\"/\\".
Reason: \`undefined\` cannot be serialized as JSON. Please use \`null\` or omit this value all together."
Reason: \`undefined\` cannot be serialized as JSON. Please use \`null\` or omit this value."
`)
expect(() =>
......@@ -136,7 +136,7 @@ Reason: \`function\` cannot be serialized as JSON. Please only return JSON seria
expect(() => isSerializableProps('/', 'test', { k: { a: [1, undefined] } }))
.toThrowErrorMatchingInlineSnapshot(`
"Error serializing \`.k.a[1]\` returned from \`test\` in \\"/\\".
Reason: \`undefined\` cannot be serialized as JSON. Please use \`null\` or omit this value all together."
Reason: \`undefined\` cannot be serialized as JSON. Please use \`null\` or omit this value."
`)
expect(() =>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册