logged scope now includes library and version
[squeep-indieauth-helper] / test / lib / common.js
index 7ebc91b45b6cf81c47306b48a7cfc62c5ceffe78..20911c1d5d745eb0749df5dd69a58cbd173163f2 100644 (file)
@@ -9,12 +9,12 @@ describe('common', function () {
     it('names a file path', function () {
       const filename = 'lib/foo/bar.js';
       const result = common.fileScope(filename)('baz');
-      assert.strictEqual(result, 'bar: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.strictEqual(result, 'foo:baz');
+      assert(result.endsWith(':foo:baz'));
     });
   }); // fileScope