yoastseo-dep
Version:
Yoast clientside page analysis
12 lines (9 loc) • 399 B
JavaScript
import addMark from "../../src/markers/addMark.js";
describe( "addMark", function() {
it( "should mark an empty text", function() {
expect( addMark( "" ) ).toBe( "<yoastmark class='yoast-text-mark'></yoastmark>" );
} );
it( "should mark a normal text", function() {
expect( addMark( "A piece of text" ) ).toBe( "<yoastmark class='yoast-text-mark'>A piece of text</yoastmark>" );
} );
} );