Skip to content

Commit ccc343e

Browse files
committed
add test.
1 parent 2cbfb9c commit ccc343e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Diff for: test/unit/render-util.test.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const { removeAtag } = require(`${SRC_PATH}/core/render/utils`);
2+
3+
// Suite
4+
// -----------------------------------------------------------------------------
5+
describe('core/render/utils', () => {
6+
// removeAtag()
7+
// ---------------------------------------------------------------------------
8+
describe('removeAtag()', () => {
9+
test('removeAtag from a link', () => {
10+
const result = removeAtag('<a href="www.example.com">content</a>');
11+
12+
expect(result).toEqual('content');
13+
});
14+
});
15+
});

0 commit comments

Comments
 (0)