Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Jan 20, 2022
1 parent b8b5910 commit 107dfe2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/graph-codegen.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ test('netlify graph handler codegen', (t) => {
sources.push([dummyPath, content])
})

const textualSource = sources.sort(
([filenameA], [filenameB]) => filenameA[0].localeCompare(filenameB[0])
).map(([filename, content]) => `${filename}: ${content}`).join('/-----------------/')
const textualSource = sources
.sort(([filenameA], [filenameB]) => filenameA[0].localeCompare(filenameB[0]))
.map(([filename, content]) => `${filename}: ${content}`)
.join('/-----------------/')

t.snapshot(normalize(JSON.stringify(textualSource)))
})

0 comments on commit 107dfe2

Please sign in to comment.