|
@@ -120,7 +120,7 @@ describe('showdown.Converter', function () {
|
|
function runListener (name) {
|
|
function runListener (name) {
|
|
it('should listen to ' + name, function () {
|
|
it('should listen to ' + name, function () {
|
|
var converter = new showdown.Converter();
|
|
var converter = new showdown.Converter();
|
|
- converter.listen(name, function (evtName, text, options) {
|
|
|
|
|
|
+ converter.listen(name, function (evtName, text) {
|
|
evtName.should.equal(name);
|
|
evtName.should.equal(name);
|
|
text.should.match(/^[\s\S]*foo[\s\S]*$/);
|
|
text.should.match(/^[\s\S]*foo[\s\S]*$/);
|
|
return text;
|
|
return text;
|