Skip to content
Myr

Added flash formatter support. Closes #411

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 6c56e9d · Browse files · 2 files+31 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+31 added−3 removed

  • tests:+3 added−3 removed
  • other:+28 added−0 removed

2 files+31 added−3 removed

modified:lib/express/request.js+28 added
modified:test/request.test.js+3 added-3 removed
133 unmodified lines
134 req.flash('info', 'Email _sent_.');135 req.flash('info', '<script>');136 assert.eql(['Email <em>sent</em>.', '&lt;script&gt;'], req.flash('info'));137 138 req.flash('info', 'Welcome _%s_, to %s', 'TJ', 'something');139 assert.eql(['Welcome TJ to Something'], req.flash('info'));140 138 req.flash('info', 'Welcome _%s_ to %s', 'TJ', 'something');139 assert.eql(['Welcome <em>TJ</em> to something'], req.flash('info'));140141 res.send('ok');142 });143 144 assert.response(app,
4 unmodified lines