diff --git a/packages/gatsby/src/schema/__tests__/create-key.js b/packages/gatsby/src/schema/__tests__/create-key.js index e0f679b7a8414..eb4a28578422d 100644 --- a/packages/gatsby/src/schema/__tests__/create-key.js +++ b/packages/gatsby/src/schema/__tests__/create-key.js @@ -2,12 +2,8 @@ const createKey = require(`../create-key`) describe(`createKey`, () => { it(`leaves valid strings as is`, () => { - ;[ - [`01234`, `01234`], - [`description`, `description`], - [`_hello`, `_hello`], - ].forEach(([input, output]) => { - expect(createKey(input)).toBe(output) + ;[`01234`, `validstring`, `_hello`, `_`].forEach(input => { + expect(createKey(input)).toBe(input) }) })