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

asyncLiz / minify-html-literals
84%

Build:
DEFAULT BRANCH: master
Repo Added 24 Jul 2018 08:25PM CUT
Files 3
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • css-options
  • dependabot/npm_and_yarn/handlebars-4.5.1
  • dependabot/npm_and_yarn/handlebars-4.7.7
  • dependabot/npm_and_yarn/hosted-git-info-2.8.9
  • dependabot/npm_and_yarn/ini-1.3.7
  • dependabot/npm_and_yarn/js-yaml-3.13.1
  • dependabot/npm_and_yarn/lodash-4.17.15
  • dependabot/npm_and_yarn/lodash-4.17.19
  • dependabot/npm_and_yarn/lodash-4.17.21
  • dependabot/npm_and_yarn/lodash.template-4.5.0
  • dependabot/npm_and_yarn/mixin-deep-1.3.2
  • dependabot/npm_and_yarn/standard-version-8.0.1
  • dependabot/npm_and_yarn/y18n-4.0.1
  • v1.0.2
  • v1.0.3
  • v1.0.4
  • v1.0.5
  • v1.0.6
  • v1.0.7
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.2.0
  • v1.2.1
  • v1.2.2
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.3.3
  • v1.3.4
  • v1.3.5

pending completion
105

push

travis-ci-com

web-flow
test: add test for nested template literals (#36)

* Add test for nested template literals

Initially I thought this package wouldn't work for nested template
literals (which ChromeDevTools used). I wanted to do TDD and add
the test first (since there was no test for it yet) and I discovered
this use case is already covered. That's because the `template.tag`
for MemberExpressions already includes the whole line, and thus
it matches on `lihtml.html`, which indeed includes `html`.

So let's add the test to make sure this use case remains covers,
but no actual code changes are required :tada:

* Update minifyHTMLLiterals.spec.ts

74 of 102 branches covered (72.55%)

Branch coverage included in aggregate %.

125 of 135 relevant lines covered (92.59%)

30.48 hits per line

Relevant lines Covered
Build:
Build:
135 RELEVANT LINES 125 COVERED LINES
30.48 HITS PER LINE
Source Files on master
  • Tree
  • List 3
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/LineBranch HitsBranch Misses
80.18
src/strategy.ts251 71 65 6 32.0 + 1.024 16
87.1
src/minifyHTMLLiterals.ts356 62 58 4 34.0 50 12
100.0
index.ts3 2 2 0 1.0 0 0
Showing 1 to 3 of 3 entries
  • Previous
  • 1
  • Next
  • ►
    92.48
    src/

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
105 master test: add test for nested template literals (#36) * Add test for nested template literals Initially I thought this package wouldn't work for nested template literals (which ChromeDevTools used). I wanted to do TDD and add the test first (sin... push 25 May 2021 09:55PM CUT web-flow travis-ci-com pending completion  
96 master chore(deps): bump y18n from 4.0.0 to 4.0.1 (#32) Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) -... push 30 Mar 2021 05:16AM CUT web-flow travis-ci-com pending completion  
93 master chore(release): 1.3.5 push 09 Mar 2021 08:02AM CUT asyncLiz travis-ci-com pending completion  
90 master chore(release): 1.3.4 push 09 Mar 2021 07:57AM CUT asyncLiz travis-ci-com pending completion  
88 master chore(release): 1.3.3 push 09 Mar 2021 07:54AM CUT asyncLiz travis-ci-com pending completion  
87 master fix: spaces in pseudo classes (like ::part) are not removed Fixes #26 push 09 Mar 2021 07:46AM CUT asyncLiz travis-ci-com pending completion  
86 master fix: minify multiline svg elements push 09 Mar 2021 05:34AM CUT asyncLiz travis-ci-com pending completion  
84 master chore(deps): bump ini from 1.3.5 to 1.3.7 (#27) Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7) Sign... push 12 Feb 2021 08:24PM CUT web-flow travis-ci-com pending completion  
83 master fix: parse errors with JS comments in HTML attributes with no quotes push 12 Feb 2021 08:23PM CUT asyncLiz travis-ci-com pending completion  
82 master fix: html attribute placeholders throwing split error #28 push 12 Feb 2021 07:06PM CUT asyncLiz travis-ci-com pending completion  
See All Builds (100)
  • Repo on GitHub
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

© 2025 Coveralls, Inc