mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
test(legacyExtension): remove legacy extension test
This commit is contained in:
parent
cee6be6808
commit
602dcb149f
|
@ -1,24 +0,0 @@
|
||||||
/**
|
|
||||||
* Created by Estevao on 06-06-2015.
|
|
||||||
*/
|
|
||||||
require('source-map-support').install();
|
|
||||||
var expect = require('chai').expect,
|
|
||||||
showdown = require('../bootstrap').showdown;
|
|
||||||
|
|
||||||
describe('showdown legacy extension support', function () {
|
|
||||||
'use strict';
|
|
||||||
var extObjMock =
|
|
||||||
{
|
|
||||||
type: 'lang',
|
|
||||||
filter: function () {}
|
|
||||||
},
|
|
||||||
extFunc = function () {
|
|
||||||
return [extObjMock];
|
|
||||||
};
|
|
||||||
|
|
||||||
it('accept extensions loaded by the old mechanism', function () {
|
|
||||||
showdown.extensions.bazinga = extFunc;
|
|
||||||
var cnv = new showdown.Converter({extensions: ['bazinga']});
|
|
||||||
expect(cnv.getAllExtensions().language).to.eql([extObjMock]);
|
|
||||||
});
|
|
||||||
});
|
|
Loading…
Reference in New Issue
Block a user