Skip to content

Commit

Permalink
test: simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DSchau committed Feb 12, 2018
1 parent 560d058 commit 563b271
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/gatsby/src/schema/__tests__/create-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})

Expand Down

0 comments on commit 563b271

Please sign in to comment.