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

Commit b06515d

Browse files
committed
test: run test against raw output too
1 parent 3f02b84 commit b06515d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/fixtures.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ test.group('Fixtures', () => {
3333
const state = JSON.parse(readFileSync(join(dirBasePath, 'index.json'), 'utf-8'))
3434

3535
const output = edge.render('index.edge', state)
36+
const rawOutput = edge.renderRaw(
37+
readFileSync(join(dirBasePath, 'index.edge'), 'utf-8'),
38+
state
39+
)
3640
assert.stringEqual(output.trim(), out)
41+
assert.stringEqual(rawOutput.trim(), out)
3742
})
3843
})
3944
})

0 commit comments

Comments
 (0)