mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore: update chai
This commit is contained in:
parent
0b32a95efd
commit
32a4cee258
|
@ -39,7 +39,7 @@
|
|||
"showdown": "bin/showdown.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"chai": "^1.10.0",
|
||||
"chai": "^3.5.0",
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-clean": "^0.6.0",
|
||||
"grunt-contrib-concat": "^0.5.0",
|
||||
|
|
|
@ -1,14 +1,13 @@
|
|||
/**
|
||||
* Created by Estevao on 27/01/2017.
|
||||
*/
|
||||
|
||||
var bootstrap = require('../bootstrap.js'),
|
||||
showdown = bootstrap.showdown,
|
||||
encoder = showdown.helper.encodeEmailAddress;
|
||||
showdown = bootstrap.showdown;
|
||||
|
||||
describe('encodeEmailAddress', function () {
|
||||
describe('encodeEmailAddress()', function () {
|
||||
'use strict';
|
||||
var email = 'foobar@example.com',
|
||||
var encoder = showdown.helper.encodeEmailAddress,
|
||||
email = 'foobar@example.com',
|
||||
encodedEmail = encoder(email);
|
||||
|
||||
it('should encode email', function () {
|
||||
|
|
|
@ -11,7 +11,7 @@ describe('showdown.options', function () {
|
|||
showdown.setOption('foo', 'bar');
|
||||
showdown.getOption('foo').should.equal('bar');
|
||||
showdown.resetOptions();
|
||||
expect(showdown.getOption('foo')).to.be.undefined();
|
||||
(typeof showdown.getOption('foo')).should.equal('undefined');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user