« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/coverage-map.js
diff options
context:
space:
mode:
Diffstat (limited to 'coverage-map.js')
-rw-r--r--coverage-map.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/coverage-map.js b/coverage-map.js
index 0ed9d60a..8bbf3057 100644
--- a/coverage-map.js
+++ b/coverage-map.js
@@ -22,10 +22,30 @@ export default function map(F) {
   if (match) {
     const f = match[1];
 
+    match = f.match(/^composite\/(.*?)\//);
+    if (match) {
+      switch (match[1]) {
+        case 'common-utilities':
+          return `src/data/things/composite.js`;
+        default:
+          return null;
+      }
+    }
+
     match = f.match(/^things\/(.*)\.js$/);
     if (match) {
       return `src/data/things/${match[1]}.js`;
     }
+
+    match = f.match(/^cacheable-object\.js$/);
+    if (match) {
+      return `src/data/things/cacheable-object.js`;
+    }
+
+    match = f.match(/^(templateCompositeFrom|compositeFrom)\.js$/);
+    if (match) {
+      return `src/data/things/composite.js`;
+    }
   }
 
   // unit/util/...