Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbfb9c commit ccc343eCopy full SHA for ccc343e
test/unit/render-util.test.js
@@ -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