Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
test: run test against raw output too
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Feb 22, 2021
1 parent 3f02b84 commit b06515d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/fixtures.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ test.group('Fixtures', () => {
const state = JSON.parse(readFileSync(join(dirBasePath, 'index.json'), 'utf-8'))

const output = edge.render('index.edge', state)
const rawOutput = edge.renderRaw(
readFileSync(join(dirBasePath, 'index.edge'), 'utf-8'),
state
)
assert.stringEqual(output.trim(), out)
assert.stringEqual(rawOutput.trim(), out)
})
})
})

0 comments on commit b06515d

Please sign in to comment.