瀏覽代碼

chore: update chai

Estevao Soares dos Santos 8 年之前
父節點
當前提交
32a4cee258
共有 3 個文件被更改,包括 6 次插入7 次删除
  1. 1 1
      package.json
  2. 4 5
      test/node/showdown.helpers.js
  3. 1 1
      test/node/showdown.js

+ 1 - 1
package.json

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

+ 4 - 5
test/node/showdown.helpers.js

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

+ 1 - 1
test/node/showdown.js

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