awesome-string
Version:
The ultimate JavaScript string library
11 lines (8 loc) • 343 B
JavaScript
import { expect } from 'chai';
import parseTagName from 'helper/strip/parse_tag_name';
describe('parseTagName', function() {
it('should parse the tag name from markup', function () {
expect(parseTagName("<img title=\"foo 'bar'\"/>")).to.be.equal('img');
expect(parseTagName("< b>Wonderful world</b>")).to.be.equal('b');
});
});