Skip to content

Commit

Permalink
test: add a test covering \u path issue for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Apr 14, 2020
1 parent 453c865 commit 6b46aa2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/template.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,13 @@ test.group('Template', (group) => {
const output = template.renderInline('foo', 'user')(template, {}, new Context(), user)
assert.equal(output.trim(), 'Hello virk')
})

test('process file names starting with u', async (assert) => {
await fs.add('users.edge', 'Hello {{ user.username }}')
const template = new Template(compiler, {}, {})

const user = { username: 'virk' }
const output = template.render('users', { user })
assert.equal(output.trim(), 'Hello virk')
})
})

0 comments on commit 6b46aa2

Please sign in to comment.