Commit 0dfdb8de authored by Björn Bartels's avatar Björn Bartels 👩🏻
Browse files

PATLAB-7 add adpaters' tests

parent b68762de
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -45,21 +45,24 @@ module.exports.search = function(items, link) {
}

function processTree(tree) {
  var sass = {};
  var sass = false;
  var c = 0;
  for (var i in tree) {
    var obj = tree[i];
    var group = obj.context.type

    if (!sass[group]) sass[group] = [];
    if (!sass[group]) {
    	if (sass === false) {
    		sass = {};
    	}
    	sass[group] = [];
    }
    sass[group].push(obj);
    c++;
  }
  if ( !sass || (sass.length == 0) ) { sass = false };
  return sass;
}

function escape(text) {
  if (typeof text === 'undefined') return '';
  return text.toLowerCase().replace(/[^\w]+/g, '-');
  return String(text).toLowerCase().replace(/[^\w]+/g, '-');
}
+1308 −1991

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
    "dev": "gulp",
    "build": "gulp",
    "demo": "gulp --demo",
    "reinstall": "rm -rf node_modules bower_components package-lock.json ; npm install; bower link siteapp; npm test;"
    "reinstall": "rm -rf node_modules bower_components package-lock.json ; npm install; bower link siteapp;"
  },
  "author": "Björn Bartels <coding@bjoernbartels.earth>",
  "license": "Apache-2.0",
+1 −1
Original line number Diff line number Diff line
<my example>
 No newline at end of file
<a href="/somewhere.html">anywhere</a>
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
@@ -415,7 +415,6 @@ TextExcerptToggle.defaults = {
   * Allows a click on the body to close the TextExcerptToggle.
   * @option
   * @type {boolean}
   * @default false
   */
  closeOnClick: false
}
Loading