File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
require = require ( 'esm' ) (
3
3
module /* , options */
4
4
) ; /* eslint-disable-line no-global-assign */
5
- const { expect } = require ( 'chai' ) ;
6
5
const { resolvePath } = require ( '../../src/core/router/util' ) ;
6
+ const { removeAtag } = require ( '../../src/core/render/utils' ) ;
7
+ const { expect } = require ( 'chai' ) ;
7
8
8
9
describe ( 'router/util' , function ( ) {
9
10
it ( 'resolvePath' , async function ( ) {
@@ -30,3 +31,13 @@ describe('router/util', function() {
30
31
expect ( result ) . equal ( '/hello.md' ) ;
31
32
} ) ;
32
33
} ) ;
34
+
35
+ describe ( 'render/utils/removeAtag' , function ( ) {
36
+ it ( 'remove A tag' , async function ( ) {
37
+ // WHEN
38
+ const result = removeAtag ( '<a href="http://url">content</a>' ) ;
39
+
40
+ // THEN
41
+ expect ( result ) . equal ( 'content' ) ;
42
+ } ) ;
43
+ } ) ;
You can’t perform that action at this time.
0 commit comments