mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
16 lines
503 B
JavaScript
16 lines
503 B
JavaScript
const { removeAtag } = require('../../src/core/render/utils');
|
|
|
|
// Suite
|
|
// -----------------------------------------------------------------------------
|
|
describe('core/render/utils', () => {
|
|
// removeAtag()
|
|
// ---------------------------------------------------------------------------
|
|
describe('removeAtag()', () => {
|
|
test('removeAtag from a link', () => {
|
|
const result = removeAtag('<a href="www.example.com">content</a>');
|
|
|
|
expect(result).toEqual('content');
|
|
});
|
|
});
|
|
});
|