Commit 2f64665b authored by Robert Knight's avatar Robert Knight

Fix and/or suppress JSHint violations in markdown.js

This code is in pretty poor shape. Some lint violations
were easily fixed, others will require larger refactoring
of the code. Before that can be done the existing behavior
needs test coverage. For the moment this commit suppresses
the lint violations.
parent 7774b9f6
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
"chrome": false, "chrome": false,
"h": false, "h": false,
"Promise": false, "Promise": false,
"angular": false,
"chai": false, "chai": false,
"moment": false,
"jstz": false,
"sinon": false, "sinon": false,
"JSON": false "JSON": false
}, },
...@@ -30,7 +27,6 @@ ...@@ -30,7 +27,6 @@
"URL", "URL",
"after", "after",
"afterEach", "afterEach",
"angular",
"assert", "assert",
"before", "before",
"beforeEach", "beforeEach",
......
This diff is collapsed.
'use strict'; 'use strict';
var angular = require('angular');
var proxyquire = require('proxyquire'); var proxyquire = require('proxyquire');
var util = require('./util'); var util = require('./util');
...@@ -41,7 +42,7 @@ describe('markdown', function () { ...@@ -41,7 +42,7 @@ describe('markdown', function () {
before(function () { before(function () {
angular.module('app', ['ngSanitize']) angular.module('app', ['ngSanitize'])
.directive('markdown', proxyquire('../markdown', { .directive('markdown', proxyquire('../markdown', {
angular: noCallThru(require('angular')), angular: noCallThru(angular),
katex: { katex: {
renderToString: function (input) { renderToString: function (input) {
return 'math:' + input.replace(/$$/g, ''); return 'math:' + input.replace(/$$/g, '');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment