chore: update chai

This commit is contained in:
Estevao Soares dos Santos 2017-01-27 22:07:55 +00:00
parent 0b32a95efd
commit 32a4cee258
3 changed files with 6 additions and 7 deletions

View File

@ -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",

View File

@ -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 () {

View File

@ -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');
});
});