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
});
}); // properURLComponentName
+ describe('formData', function () {
+ it('covers', function () {
+ const result = common.formData({
+ key: 'value',
+ foo: 'bar',
+ });
+ assert.strictEqual(result, 'key=value&foo=bar');
+ });
+ }); // formData
+
}); // common
\ No newline at end of file