• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DiogoAngelim / html-to-gutenberg / #2

12 Jan 2026 05:04PM UTC coverage: 0.0%. Remained the same
#2

push

DiogoAngelim
Migrate tests to TypeScript, enable coverage, remove demo files

0 of 89 new or added lines in 3 files covered. (0.0%)

0 of 89 relevant lines covered (0.0%)

0.0 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/utils.test.ts
NEW
1
import { expect } from 'chai';
×
NEW
2
import * as utils from '../utils';
×
3

NEW
4
describe('utils.ts functions', () => {
×
NEW
5
  it('hasTailwindCdnSource returns true for Tailwind CDN', () => {
×
NEW
6
    expect(utils.hasTailwindCdnSource(['https://cdn.tailwindcss.com'])).to.equal(true);
×
NEW
7
    expect(utils.hasTailwindCdnSource(['https://example.com'])).to.equal(false);
×
8
  });
9

NEW
10
  it('replaceSourceUrlVars returns input if no match', () => {
×
NEW
11
    const str = "var.url+'http://site.com/path'";
×
NEW
12
    const expected = "${vars.url}/path";
×
NEW
13
    expect(utils.replaceSourceUrlVars(str, 'http://site.com')).to.equal(expected);
×
14
  });
15

NEW
16
  it('sanitizeAndReplaceLeadingNumbers replaces leading numbers', () => {
×
NEW
17
    expect(utils.sanitizeAndReplaceLeadingNumbers('1test')).to.match(/one1test|1test/);
×
18
  });
19

NEW
20
  it('replaceUnderscoresSpacesAndUppercaseLetters replaces underscores and spaces', () => {
×
NEW
21
    expect(utils.replaceUnderscoresSpacesAndUppercaseLetters('Test_Name Here')).to.equal('test-name-here');
×
22
  });
23

NEW
24
  it('convertDashesSpacesAndUppercaseToUnderscoresAndLowercase converts correctly', () => {
×
NEW
25
    expect(utils.convertDashesSpacesAndUppercaseToUnderscoresAndLowercase('Test-Name Here')).to.equal('test_name_here');
×
26
  });
27

NEW
28
  it('hasAbsoluteKeyword detects absolute', () => {
×
NEW
29
    expect(utils.hasAbsoluteKeyword('absolute')).to.equal(true);
×
NEW
30
    expect(utils.hasAbsoluteKeyword('relative')).to.equal(false);
×
31
  });
32

NEW
33
  it('generateRandomVariableName returns string with prefix', () => {
×
NEW
34
    expect(utils.generateRandomVariableName('prefix')).to.match(/^prefix/);
×
35
  });
36
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc