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.strictEqual(result, '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');
- });
- }); // fileScope
-
describe('generateETag', function () {
it('generates a tag from data', function () {
const expected = '"RHUvNyculE/SyROjU0LqzN0arxibrlBnazAashP8UGE"';