use log-helper fileScope
[squeep-indieauth-helper] / test / lib / common.js
index ff250a4c43098e0be305ab523d2d396eb6defc8b..3adb2e8e6f4d4f77556d8e1e8aa3cdd796c2ff17 100644 (file)
@@ -5,18 +5,6 @@ const assert = require('assert');
 const common = require('../../lib/common');
 
 describe('common', function () {
-  describe('fileScope', function () {
-    it('names a file path', function () {
-      const filename = 'lib/foo/bar.js';
-      const result = common.fileScope(filename)('baz');
-      assert(result.endsWith(':bar:baz'));
-    });
-    it('names an index path', function () {
-      const filename = 'lib/foo/index.js';
-      const result = common.fileScope(filename)('baz');
-      assert(result.endsWith(':foo:baz'));
-    });
-  }); // fileScope
 
   describe('pick', function () {
     it('picks', function () {
@@ -194,4 +182,4 @@ describe('common', function () {
     });
   }); // properURLComponentName
 
-}); // common
\ No newline at end of file
+}); // common