[Pkg-javascript-devel] need help fixing test failure of node-svgo
Pirate Praveen
praveen at debian.org
Tue Jan 16 06:24:17 UTC 2018
Control: tag -1 help
code is pushed to https://salsa.debian.org/js-team/node-svgo
some dependencies are still in NEW which I have added to
https://people.debian.org/~praveen/babel/
287 passing (1s)
15 failing
1) plugins tests
convertStyleToAttrs.02:
Error: Unknown node type: undefined
at Object.generate
(/usr/lib/nodejs/css-tree/lib/generator/create.js:38:23)
at Object.translate
(/usr/lib/nodejs/css-tree/lib/generator/create.js:47:21)
at Object.csstreeToStyleDeclaration (lib/css-tools.js:168:33)
at List.<anonymous> (lib/svgo/css-style-declaration.js:108:41)
at List.each (/usr/lib/nodejs/css-tree/lib/utils/list.js:143:12)
at CSSStyleDeclaration._loadCssText
(lib/svgo/css-style-declaration.js:107:27)
at CSSStyleDeclaration.getProperties
(lib/svgo/css-style-declaration.js:201:10)
at CSSStyleDeclaration.getCssText
(lib/svgo/css-style-declaration.js:122:27)
at CSSStyleDeclaration.getStyleValue
(lib/svgo/css-style-declaration.js:71:17)
at Object.exports.fn (plugins/convertStyleToAttrs.js:56:44)
at lib/svgo/plugins.js:61:45
at Array.filter (<anonymous>)
at monkeys (lib/svgo/plugins.js:48:39)
at lib/svgo/plugins.js:68:17
at Array.filter (<anonymous>)
at monkeys (lib/svgo/plugins.js:48:39)
at perItem (lib/svgo/plugins.js:79:12)
at lib/svgo/plugins.js:19:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
2) plugins tests
inlineStyles.03:
AssertionError: expected '<svg xmlns="http://www.w3.org/2000/svg"
id="dark" viewBox="0 0 258.12 225.88">\n<!--for
https://github.com/svg/svgo/pull/592#issuecomment-266327016-->\n
<style>\n .cls-8{cls-7-and-8:1}\n </style>\n <path
style="cls-7-and-8:1;only-cls-7:1"/>\n</svg>' to be '<svg
xmlns="http://www.w3.org/2000/svg" id="dark" viewBox="0 0 258.12
225.88">\n<!--for
https://github.com/svg/svgo/pull/592#issuecomment-266327016-->\n
<style>\n .cls-8{cls-7-and-8: 1}\n </style>\n <path
style="cls-7-and-8:1;only-cls-7:1"/>\n</svg>'
+ expected - actual
<svg xmlns="http://www.w3.org/2000/svg" id="dark" viewBox="0 0
258.12 225.88">
<!--for
https://github.com/svg/svgo/pull/592#issuecomment-266327016-->
<style>
- .cls-8{cls-7-and-8:1}
+ .cls-8{cls-7-and-8: 1}
</style>
<path style="cls-7-and-8:1;only-cls-7:1"/>
</svg>
at Assertion.fail (/usr/lib/nodejs/should/lib/assertion.js:92:17)
at Assertion.value (/usr/lib/nodejs/should/lib/assertion.js:164:19)
at test/plugins/_index.js:49:58
at <anonymous>
3) plugins tests
inlineStyles.13:
AssertionError: expected '<svg id="test"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 81.285 81.285">\n
<defs>\n <style>\n @charset
'UTF-8';@namespace svg url(http://www.w3.org/2000/svg);@import
url('https://fonts.googleapis.com/css?family=Roboto');@font-face{font-family:SomeFont;src:local("Some
Font"), local("SomeFont"),
url(SomeFont.ttf);font-weight:bold}@viewport{zoom:0.8;min-zoom:0.4;max-zoom:0.9}@keyframes
identifier{0%{top:0}50%{top:30px;left:20px}50%{top:10px}100%{top:0}}@page
:first{margin:1in}@supports
(display:flex){.module{display:flex}}@document
url('http://example.com/test.html'){rect{stroke:red}}\n
</style>\n </defs>\n <rect width="100" height="100"
style="fill:blue"/>\n</svg>' to be '<svg id="test"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 81.285 81.285">\n
<defs>\n <style>\n @charset
'UTF-8';@namespace svg url(http://www.w3.org/2000/svg);@import
url('https://fonts.googleapis.com/css?family=Roboto');@font-face{font-family:
SomeFont;src: local("Some Font"), local("SomeFont"),
url(SomeFont.ttf);font-weight: bold}@viewport{zoom: 0.8;min-zoom:
0.4;max-zoom: 0.9}@keyframes identifier{0%{top: 0}50%{top: 30px;left:
20px}50%{top: 10px}100%{top: 0}}@page :first{margin: 1in}@supports
(display: flex){.module{display: flex}}@document
url('http://example.com/test.html'){rect{stroke: red}}\n
</style>\n </defs>\n <rect width="100" height="100"
style="fill:blue"/>\n</svg>'
+ expected - actual
<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
81.285 81.285">
<defs>
<style>
- @charset 'UTF-8';@namespace svg
url(http://www.w3.org/2000/svg);@import
url('https://fonts.googleapis.com/css?family=Roboto');@font-face{font-family:SomeFont;src:local("Some
Font"), local("SomeFont"),
url(SomeFont.ttf);font-weight:bold}@viewport{zoom:0.8;min-zoom:0.4;max-zoom:0.9}@keyframes
identifier{0%{top:0}50%{top:30px;left:20px}50%{top:10px}100%{top:0}}@page
:first{margin:1in}@supports
(display:flex){.module{display:flex}}@document
url('http://example.com/test.html'){rect{stroke:red}}
+ @charset 'UTF-8';@namespace svg
url(http://www.w3.org/2000/svg);@import
url('https://fonts.googleapis.com/css?family=Roboto');@font-face{font-family:
SomeFont;src: local("Some Font"), local("SomeFont"),
url(SomeFont.ttf);font-weight: bold}@viewport{zoom: 0.8;min-zoom:
0.4;max-zoom: 0.9}@keyframes identifier{0%{top: 0}50%{top: 30px;left:
20px}50%{top: 10px}100%{top: 0}}@page :first{margin: 1in}@supports
(display: flex){.module{display: flex}}@document
url('http://example.com/test.html'){rect{stroke: red}}
</style>
</defs>
<rect width="100" height="100" style="fill:blue"/>
</svg>
at Assertion.fail (/usr/lib/nodejs/should/lib/assertion.js:92:17)
at Assertion.value (/usr/lib/nodejs/should/lib/assertion.js:164:19)
at test/plugins/_index.js:49:58
at <anonymous>
4) plugins tests
inlineStyles.14:
AssertionError: expected '<svg id="test"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 81.285 81.285">\n
<defs>\n <style>\n @media only screen and
(min-device-width:320px) and (max-device-width:480px) and
(-webkit-min-device-pixel-ratio:2){.blue{fill:blue}}\n </style>\n
</defs>\n <rect width="100" height="100" class="blue"/>\n</svg>'
to be '<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
81.285 81.285">\n <defs>\n <style>\n @media only
screen and (min-device-width:320px) and (max-device-width:480px) and
(-webkit-min-device-pixel-ratio:2){.blue{fill: blue}}\n
</style>\n </defs>\n <rect width="100" height="100"
class="blue"/>\n</svg>'
+ expected - actual
<svg id="test" xmlns="http://www.w3.org/2000/svg" viewBox="0 0
81.285 81.285">
<defs>
<style>
- @media only screen and (min-device-width:320px) and
(max-device-width:480px) and
(-webkit-min-device-pixel-ratio:2){.blue{fill:blue}}
+ @media only screen and (min-device-width:320px) and
(max-device-width:480px) and
(-webkit-min-device-pixel-ratio:2){.blue{fill: blue}}
</style>
</defs>
<rect width="100" height="100" class="blue"/>
</svg>
at Assertion.fail (/usr/lib/nodejs/should/lib/assertion.js:92:17)
at Assertion.value (/usr/lib/nodejs/should/lib/assertion.js:164:19)
at test/plugins/_index.js:49:58
at <anonymous>
5) plugins tests
inlineStyles.15:
AssertionError: expected '<?xml version="1.0"
standalone="no"?>\n<svg viewBox="0 0 24 24" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs
xmlns="http://www.w3.org/1999/xhtml">\n <style type="text/css">\n
html /deep/ [layout][horizontal],html /deep/
[layout][vertical]{display:flex}html /deep/
[layout][horizontal][inline],html /deep/
[layout][vertical][inline]{display:inline-flex}html /deep/
[layout][horizontal]{flex-direction:row}html /deep/
[layout][horizontal][reverse]{flex-direction:row-reverse}html /deep/
[layout][vertical]{flex-direction:column}html /deep/
[layout][vertical][reverse]{flex-direction:column-reverse}html /deep/
[layout][wrap]{flex-wrap:wrap}html /deep/
[layout][wrap-reverse]{flex-wrap:wrap-reverse}html /deep/ [flex]{flex:1
1 0px}html /deep/ [flex][auto]{flex:1 1 auto}html /deep/
[flex][none]{flex:0 0 auto}html /deep/ [flex][one]{flex:1 1 0px}html
/deep/ [flex][two]{flex:2 1 0px}html /deep/ [flex][three]{flex:3 1
0px}html /deep/ [flex][four]{flex:4 1 0px}html /deep/
[flex][five]{flex:5 1 0px}html /deep/ [flex][six]{flex:6 1 0px}html
/deep/ [flex][seven]{flex:7 1 0px}html /deep/ [flex][eight]{flex:8 1
0px}html /deep/ [flex][nine]{flex:9 1 0px}html /deep/
[flex][ten]{flex:10 1 0px}html /deep/ [flex][eleven]{flex:11 1 0px}html
/deep/ [flex][twelve]{flex:12 1 0px}html /deep/
[layout][start]{align-items:flex-start}html /deep/
[layout][center]{align-items:center}html /deep/
[layout][end]{align-items:flex-end}html /deep/
[layout][start-justified]{justify-content:flex-start}html /deep/
[layout][center-justified]{justify-content:center}html /deep/
[layout][end-justified]{justify-content:flex-end}html /deep/
[layout][around-justified]{justify-content:space-around}html /deep/
[layout][justified]{justify-content:space-between}html /deep/
[self-start]{align-self:flex-start}html /deep/
[self-center]{align-self:center}html /deep/
[self-end]{align-self:flex-end}html /deep/
[self-stretch]{align-self:stretch}html /deep/ [block]{display:block}html
/deep/ [hidden]{display:none!important}html /deep/
[relative]{position:relative}html /deep/
[fit]{position:absolute;top:0px;right:0px;bottom:0px;left:0px}body[fullbleed]{margin:0px;height:100vh}html
/deep/ [segment],html /deep/
segment{display:block;position:relative;box-sizing:border-box;margin:1em
0.5em;padding:1em;-webkit-box-shadow:rgba(0, 0, 0, 0.0980392) 0px 0px
0px 1px;box-shadow:rgba(0, 0, 0, 0.0980392) 0px 0px 0px
1px;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;background-color:white}html
/deep/
core-icon{display:inline-block;vertical-align:middle;background-repeat:no-repeat}html
/deep/ core-icon[size=""]{position:relative}\n
</style>\n </defs>\n <g id="airplanemode-on">\n <path
d="M10.2,9"/>\n </g>\n</svg>' to be '<?xml version="1.0"
standalone="no"?>\n<svg viewBox="0 0 24 24" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">\n <defs
xmlns="http://www.w3.org/1999/xhtml">\n <style type="text/css">\n
html /deep/ [layout][horizontal],html /deep/
[layout][vertical]{display: flex}html /deep/
[layout][horizontal][inline],html /deep/
[layout][vertical][inline]{display: inline-flex}html /deep/
[layout][horizontal]{flex-direction: row}html /deep/
[layout][horizontal][reverse]{flex-direction: row-reverse}html /deep/
[layout][vertical]{flex-direction: column}html /deep/
[layout][vertical][reverse]{flex-direction: column-reverse}html /deep/
[layout][wrap]{flex-wrap: wrap}html /deep/
[layout][wrap-reverse]{flex-wrap: wrap-reverse}html /deep/ [flex]{flex:
1 1 0px}html /deep/ [flex][auto]{flex: 1 1 auto}html /deep/
[flex][none]{flex: 0 0 auto}html /deep/ [flex][one]{flex: 1 1 0px}html
/deep/ [flex][two]{flex: 2 1 0px}html /deep/ [flex][three]{flex: 3 1
0px}html /deep/ [flex][four]{flex: 4 1 0px}html /deep/
[flex][five]{flex: 5 1 0px}html /deep/ [flex][six]{flex: 6 1 0px}html
/deep/ [flex][seven]{flex: 7 1 0px}html /deep/ [flex][eight]{flex: 8 1
0px}html /deep/ [flex][nine]{flex: 9 1 0px}html /deep/ [flex][ten]{flex:
10 1 0px}html /deep/ [flex][eleven]{flex: 11 1 0px}html /deep/
[flex][twelve]{flex: 12 1 0px}html /deep/ [layout][start]{align-items:
flex-start}html /deep/ [layout][center]{align-items: center}html /deep/
[layout][end]{align-items: flex-end}html /deep/
[layout][start-justified]{justify-content: flex-start}html /deep/
[layout][center-justified]{justify-content: center}html /deep/
[layout][end-justified]{justify-content: flex-end}html /deep/
[layout][around-justified]{justify-content: space-around}html /deep/
[layout][justified]{justify-content: space-between}html /deep/
[self-start]{align-self: flex-start}html /deep/
[self-center]{align-self: center}html /deep/ [self-end]{align-self:
flex-end}html /deep/ [self-stretch]{align-self: stretch}html /deep/
[block]{display: block}html /deep/ [hidden]{display: none
!important}html /deep/ [relative]{position: relative}html /deep/
[fit]{position: absolute;top: 0px;right: 0px;bottom: 0px;left:
0px}body[fullbleed]{margin: 0px;height: 100vh}html /deep/ [segment],html
/deep/ segment{display: block;position: relative;box-sizing:
border-box;margin: 1em 0.5em;padding: 1em;-webkit-box-shadow: rgba(0, 0,
0, 0.0980392) 0px 0px 0px 1px;box-shadow: rgba(0, 0, 0, 0.0980392) 0px
0px 0px 1px;border-top-left-radius: 5px;border-top-right-radius:
5px;border-bottom-right-radius: 5px;border-bottom-left-radius:
5px;background-color: white}html /deep/ core-icon{display:
inline-block;vertical-align: middle;background-repeat: no-repeat}html
/deep/ core-icon[size=""]{position: relative}\n
</style>\n </defs>\n <g id="airplanemode-on">\n <path
d="M10.2,9"/>\n </g>\n</svg>'
+ expected - actual
<?xml version="1.0" standalone="no"?>
<svg viewBox="0 0 24 24" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs xmlns="http://www.w3.org/1999/xhtml">
<style type="text/css">
- html /deep/ [layout][horizontal],html /deep/
[layout][vertical]{display:flex}html /deep/
[layout][horizontal][inline],html /deep/
[layout][vertical][inline]{display:inline-flex}html /deep/
[layout][horizontal]{flex-direction:row}html /deep/
[layout][horizontal][reverse]{flex-direction:row-reverse}html /deep/
[layout][vertical]{flex-direction:column}html /deep/
[layout][vertical][reverse]{flex-direction:column-reverse}html /deep/
[layout][wrap]{flex-wrap:wrap}html /deep/
[layout][wrap-reverse]{flex-wrap:wrap-reverse}html /deep/ [flex]{flex:1
1 0px}html /deep/ [flex][auto]{flex:1 1 auto}html /deep/
[flex][none]{flex:0 0 auto}html /deep/ [flex][one]{flex:1 1 0px}html
/deep/ [flex][two]{flex:2 1 0px}html /deep/ [flex][three]{flex:3 1
0px}html /deep/ [flex][four]{flex:4 1 0px}html /deep/
[flex][five]{flex:5 1 0px}html /deep/ [flex][six]{flex:6 1 0px}html
/deep/ [flex][seven]{flex:7 1 0px}html /deep/ [flex][eight]{flex:8 1
0px}html /deep/ [flex][nine]{flex:9 1 0px}html /deep/
[flex][ten]{flex:10 1 0px}html /deep/ [flex][eleven]{flex:11 1 0px}html
/deep/ [flex][twelve]{flex:12 1 0px}html /deep/
[layout][start]{align-items:flex-start}html /deep/
[layout][center]{align-items:center}html /deep/
[layout][end]{align-items:flex-end}html /deep/
[layout][start-justified]{justify-content:flex-start}html /deep/
[layout][center-justified]{justify-content:center}html /deep/
[layout][end-justified]{justify-content:flex-end}html /deep/
[layout][around-justified]{justify-content:space-around}html /deep/
[layout][justified]{justify-content:space-between}html /deep/
[self-start]{align-self:flex-start}html /deep/
[self-center]{align-self:center}html /deep/
[self-end]{align-self:flex-end}html /deep/
[self-stretch]{align-self:stretch}html /deep/ [block]{display:block}html
/deep/ [hidden]{display:none!important}html /deep/
[relative]{position:relative}html /deep/
[fit]{position:absolute;top:0px;right:0px;bottom:0px;left:0px}body[fullbleed]{margin:0px;height:100vh}html
/deep/ [segment],html /deep/
segment{display:block;position:relative;box-sizing:border-box;margin:1em
0.5em;padding:1em;-webkit-box-shadow:rgba(0, 0, 0, 0.0980392) 0px 0px
0px 1px;box-shadow:rgba(0, 0, 0, 0.0980392) 0px 0px 0px
1px;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px;background-color:white}html
/deep/
core-icon{display:inline-block;vertical-align:middle;background-repeat:no-repeat}html
/deep/ core-icon[size=""]{position:relative}
+ html /deep/ [layout][horizontal],html /deep/
[layout][vertical]{display: flex}html /deep/
[layout][horizontal][inline],html /deep/
[layout][vertical][inline]{display: inline-flex}html /deep/
[layout][horizontal]{flex-direction: row}html /deep/
[layout][horizontal][reverse]{flex-direction: row-reverse}html /deep/
[layout][vertical]{flex-direction: column}html /deep/
[layout][vertical][reverse]{flex-direction: column-reverse}html /deep/
[layout][wrap]{flex-wrap: wrap}html /deep/
[layout][wrap-reverse]{flex-wrap: wrap-reverse}html /deep/ [flex]{flex:
1 1 0px}html /deep/ [flex][auto]{flex: 1 1 auto}html /deep/
[flex][none]{flex: 0 0 auto}html /deep/ [flex][one]{flex: 1 1 0px}html
/deep/ [flex][two]{flex: 2 1 0px}html /deep/ [flex][three]{flex: 3 1
0px}html /deep/ [flex][four]{flex: 4 1 0px}html /deep/
[flex][five]{flex: 5 1 0px}html /deep/ [flex][six]{flex: 6 1 0px}html
/deep/ [flex][seven]{flex: 7 1 0px}html /deep/ [flex][eight]{flex: 8 1
0px}html /deep/ [flex][nine]{flex: 9 1 0px}html /deep/ [flex][ten]{flex:
10 1 0px}html /deep/ [flex][eleven]{flex: 11 1 0px}html /deep/
[flex][twelve]{flex: 12 1 0px}html /deep/ [layout][start]{align-items:
flex-start}html /deep/ [layout][center]{align-items: center}html /deep/
[layout][end]{align-items: flex-end}html /deep/
[layout][start-justified]{justify-content: flex-start}html /deep/
[layout][center-justified]{justify-content: center}html /deep/
[layout][end-justified]{justify-content: flex-end}html /deep/
[layout][around-justified]{justify-content: space-around}html /deep/
[layout][justified]{justify-content: space-between}html /deep/
[self-start]{align-self: flex-start}html /deep/
[self-center]{align-self: center}html /deep/ [self-end]{align-self:
flex-end}html /deep/ [self-stretch]{align-self: stretch}html /deep/
[block]{display: block}html /deep/ [hidden]{display: none
!important}html /deep/ [relative]{position: relative}html /deep/
[fit]{position: absolute;top: 0px;right: 0px;bottom: 0px;left:
0px}body[fullbleed]{margin: 0px;height: 100vh}html /deep/ [segment],html
/deep/ segment{display: block;position: relative;box-sizing:
border-box;margin: 1em 0.5em;padding: 1em;-webkit-box-shadow: rgba(0, 0,
0, 0.0980392) 0px 0px 0px 1px;box-shadow: rgba(0, 0, 0, 0.0980392) 0px
0px 0px 1px;border-top-left-radius: 5px;border-top-right-radius:
5px;border-bottom-right-radius: 5px;border-bottom-left-radius:
5px;background-color: white}html /deep/ core-icon{display:
inline-block;vertical-align: middle;background-repeat: no-repeat}html
/deep/ core-icon[size=""]{position: relative}
</style>
</defs>
<g id="airplanemode-on">
<path d="M10.2,9"/>
at Assertion.fail (/usr/lib/nodejs/should/lib/assertion.js:92:17)
at Assertion.value (/usr/lib/nodejs/should/lib/assertion.js:164:19)
at test/plugins/_index.js:49:58
at <anonymous>
6) plugins tests
inlineStyles.19:
AssertionError: expected '<svg id="icon_time" data-name="icon
time" xmlns="http://www.w3.org/2000/svg" width="51" height="51"
viewBox="0 0 51 51">\n <defs>\n <style>\n
.cls-2,.cls-3{fill:#f5f5f5;stroke:gray}.cls-2{stroke-width:1px}.cls-2{fill-rule:evenodd}.cls-3{stroke-width:2px}\n
</style>\n </defs>\n <circle cx="25.5" cy="25.5" r="25"
style="stroke-width:1px;fill:#f5f5f5;stroke:gray"/>\n <g>\n
<path class="cls-2"
d="M1098,2415a8,8,0,0,1,8,8v2h-16v-2A8,8,0,0,1,1098,2415Z"
transform="translate(-1072.5 -2389.5)"/>\n <path
id="Ellipse_14_copy" data-name="Ellipse 14 copy" class="cls-2"
d="M1098,2415a8,8,0,0,0,8-8v-2h-16v2A8,8,0,0,0,1098,2415Z"
transform="translate(-1072.5 -2389.5)"/>\n <path class="cls-2"
d="M1089,2427v-1h18v1h-18Z" transform="translate(-1072.5 -2389.5)"/>\n
<path id="Shape_10_copy" data-name="Shape 10 copy" class="cls-2"
d="M1089,2404v-1h18v1h-18Z" transform="translate(-1072.5 -2389.5)"/>\n
<circle id="Ellipse_13_copy" data-name="Ellipse 13 copy"
class="cls-3" cx="25.5" cy="31.5" r="1"/>\n <circle
id="Ellipse_13_copy_3" data-name="Ellipse 13 copy 3" class="cls-3"
cx="28.5" cy="31.5" r="1"/>\n <circle id="Ellipse_13_copy_2"
data-name="Ellipse 13 copy 2" class="cls-3" cx="22.5" cy="31.5"
r="1"/>\n </g>\n</svg>' to be '<svg id="icon_time" data-name="icon
time" xmlns="http://www.w3.org/2000/svg" width="51" height="51"
viewBox="0 0 51 51">\n <defs>\n <style>\n
.cls-2,.cls-3{fill: #f5f5f5;stroke: gray}.cls-2{stroke-width:
1px}.cls-2{fill-rule: evenodd}.cls-3{stroke-width: 2px}\n
</style>\n </defs>\n <circle cx="25.5" cy="25.5" r="25"
style="stroke-width:1px;fill:#f5f5f5;stroke:gray"/>\n <g>\n
<path class="cls-2"
d="M1098,2415a8,8,0,0,1,8,8v2h-16v-2A8,8,0,0,1,1098,2415Z"
transform="translate(-1072.5 -2389.5)"/>\n <path
id="Ellipse_14_copy" data-name="Ellipse 14 copy" class="cls-2"
d="M1098,2415a8,8,0,0,0,8-8v-2h-16v2A8,8,0,0,0,1098,2415Z"
transform="translate(-1072.5 -2389.5)"/>\n <path class="cls-2"
d="M1089,2427v-1h18v1h-18Z" transform="translate(-1072.5 -2389.5)"/>\n
<path id="Shape_10_copy" data-name="Shape 10 copy" class="cls-2"
d="M1089,2404v-1h18v1h-18Z" transform="translate(-1072.5 -2389.5)"/>\n
<circle id="Ellipse_13_copy" data-name="Ellipse 13 copy"
class="cls-3" cx="25.5" cy="31.5" r="1"/>\n <circle
id="Ellipse_13_copy_3" data-name="Ellipse 13 copy 3" class="cls-3"
cx="28.5" cy="31.5" r="1"/>\n <circle id="Ellipse_13_copy_2"
data-name="Ellipse 13 copy 2" class="cls-3" cx="22.5" cy="31.5"
r="1"/>\n </g>\n</svg>'
+ expected - actual
<svg id="icon_time" data-name="icon time"
xmlns="http://www.w3.org/2000/svg" width="51" height="51" viewBox="0 0
51 51">
<defs>
<style>
-
.cls-2,.cls-3{fill:#f5f5f5;stroke:gray}.cls-2{stroke-width:1px}.cls-2{fill-rule:evenodd}.cls-3{stroke-width:2px}
+ .cls-2,.cls-3{fill: #f5f5f5;stroke:
gray}.cls-2{stroke-width: 1px}.cls-2{fill-rule:
evenodd}.cls-3{stroke-width: 2px}
</style>
</defs>
<circle cx="25.5" cy="25.5" r="25"
style="stroke-width:1px;fill:#f5f5f5;stroke:gray"/>
<g>
at Assertion.fail (/usr/lib/nodejs/should/lib/assertion.js:92:17)
at Assertion.value (/usr/lib/nodejs/should/lib/assertion.js:164:19)
at test/plugins/_index.js:49:58
at <anonymous>
7) plugins tests
minifyStyles.01:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
8) plugins tests
minifyStyles.02:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
9) plugins tests
minifyStyles.03:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
10) plugins tests
minifyStyles.04:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
11) plugins tests
minifyStyles.05:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
12) plugins tests
minifyStyles.06:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
13) plugins tests
minifyStyles.07:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
14) plugins tests
minifyStyles.08:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
15) plugins tests
minifyStyles.09:
TypeError: fn.call is not a function
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:256:20)
at walk (/usr/lib/nodejs/css-tree/lib/walker/create.js:264:13)
at compressChunk (debian/node_modules/csso/lib/compress.js:57:5)
at compress (debian/node_modules/csso/lib/compress.js:153:9)
at minify (debian/node_modules/csso/lib/index.js:94:9)
at Object.minifyStylesheet [as minify]
(debian/node_modules/csso/lib/index.js:123:12)
at plugins/minifyStyles.js:44:42
at Array.forEach (<anonymous>)
at Object.exports.fn (plugins/minifyStyles.js:38:11)
at lib/svgo/plugins.js:95:27
at Array.forEach (<anonymous>)
at full (lib/svgo/plugins.js:93:13)
at lib/svgo/plugins.js:25:24
at Array.forEach (<anonymous>)
at module.exports (lib/svgo/plugins.js:15:13)
at lib/svgo.js:65:17
at SAXParser.sax.onend (lib/svgo/svg2js.js:169:13)
at emit (/usr/lib/nodejs/sax/lib/sax.js:624:35)
at end (/usr/lib/nodejs/sax/lib/sax.js:667:5)
at SAXParser.write (/usr/lib/nodejs/sax/lib/sax.js:975:14)
at SAXParser.close (/usr/lib/nodejs/sax/lib/sax.js:157:38)
at module.exports (lib/svgo/svg2js.js:182:28)
at module.exports.SVGO._optimizeOnce (lib/svgo.js:59:5)
at Promise (lib/svgo.js:52:14)
at new Promise (<anonymous>)
at module.exports.SVGO.optimize (lib/svgo.js:25:12)
at test/plugins/_index.js:47:33
at <anonymous>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20180116/7e2570c8/attachment.sig>
More information about the Pkg-javascript-devel
mailing list