mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
fix test
This commit is contained in:
parent
2734326e19
commit
cb0509b4a2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user