Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Sep 6, 2024
1 parent 5ed33cc commit c748935
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_star_24px": {
"d": "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",
"width": 24,
"height": 24
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__toggle_svg_production_ic_star_24px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_star_border_24px": {
"d": "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",
"width": 24,
"height": 24
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__toggle_svg_production_ic_star_border_24px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_star_half_24px": {
"d": "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",
"width": 24,
"height": 24
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__toggle_svg_production_ic_star_half_24px_svg']=obj
} else {
module.exports=obj
}

7 changes: 4 additions & 3 deletions packages/cheetah-grid-icon-svg-loader/tests/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function resolve(...names) {

module.exports = {
loadExpect(name) {
const file = path.join(FIXTURES_ROOT, `./expect/${name}`);
const file = resolve(FIXTURES_ROOT, `./expect/${name}.js`);
if (!fs.existsSync(file)) { return {}; }
return require(file);
},
Expand All @@ -23,15 +23,16 @@ module.exports = {
module.exports=obj
}
`;
const file = resolve(FIXTURES_ROOT, `./expect/${name}.js`);
let old;
try {
old = fs.readFileSync(resolve(FIXTURES_ROOT, `./expect/${name}.js`), 'utf-8');
old = fs.readFileSync(file, 'utf-8');
} catch (e) {
// ignore
}
if (old !== text) {
console.log(`save:${name}`);
fs.writeFileSync(resolve(FIXTURES_ROOT, `./expect/${name}.js`), text, 'utf-8');
fs.writeFileSync(file, text, 'utf-8');
}
}
};
Expand Down

0 comments on commit c748935

Please sign in to comment.