Skip to content

Commit

Permalink
update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
andy128k committed Oct 25, 2022
1 parent 93d219d commit 70ca01a
Show file tree
Hide file tree
Showing 29 changed files with 1,296 additions and 38 deletions.
2 changes: 1 addition & 1 deletion test/_util.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const snapshotCompilationAssets = (t, compilerStats) => {
assetNames.map((assetName) => replaceHash(replaceBackSlashes(assetName)))
);
const htmlFiles = /\.html?$/;
const textFiles = /\.(json|html?|webapp|xml)$/;
const textFiles = /\.(json|html?|webapp|xml|webmanifest)$/;
// CSS and JS files are not touched by this plugin
// therefore those files are excluded from snapshots
const ignoredFiles = /\.(js|css)$/;
Expand Down
66 changes: 65 additions & 1 deletion test/snapshots/default.test.mjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,71 @@ Generated by [AVA](https://avajs.dev).
},
{
assetName: 'assets/manifest.webmanifest',
content: 'binary assets/manifest.webmanifest',
content: `{␊
"dir": "auto",␊
"lang": "en-US",␊
"display": "standalone",␊
"orientation": "any",␊
"start_url": "/?homescreen=1",␊
"background_color": "#fff",␊
"theme_color": "#fff",␊
"icons": [␊
{␊
"src": "android-chrome-36x36.png",␊
"sizes": "36x36",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-48x48.png",␊
"sizes": "48x48",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-72x72.png",␊
"sizes": "72x72",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-96x96.png",␊
"sizes": "96x96",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-144x144.png",␊
"sizes": "144x144",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-192x192.png",␊
"sizes": "192x192",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-256x256.png",␊
"sizes": "256x256",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-384x384.png",␊
"sizes": "384x384",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-512x512.png",␊
"sizes": "512x512",␊
"type": "image/png",␊
"purpose": "any"␊
}␊
]␊
}`,
},
{
assetName: 'assets/mstile-144x144.png',
Expand Down
Binary file modified test/snapshots/default.test.mjs.snap
Binary file not shown.
198 changes: 195 additions & 3 deletions test/snapshots/html.false.test.mjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,71 @@ Generated by [AVA](https://avajs.dev).
},
{
assetName: 'assets/manifest.webmanifest',
content: 'binary assets/manifest.webmanifest',
content: `{␊
"dir": "auto",␊
"lang": "en-US",␊
"display": "standalone",␊
"orientation": "any",␊
"start_url": "/?homescreen=1",␊
"background_color": "#fff",␊
"theme_color": "#fff",␊
"icons": [␊
{␊
"src": "android-chrome-36x36.png",␊
"sizes": "36x36",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-48x48.png",␊
"sizes": "48x48",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-72x72.png",␊
"sizes": "72x72",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-96x96.png",␊
"sizes": "96x96",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-144x144.png",␊
"sizes": "144x144",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-192x192.png",␊
"sizes": "192x192",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-256x256.png",␊
"sizes": "256x256",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-384x384.png",␊
"sizes": "384x384",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-512x512.png",␊
"sizes": "512x512",␊
"type": "image/png",␊
"purpose": "any"␊
}␊
]␊
}`,
},
{
assetName: 'assets/mstile-144x144.png',
Expand Down Expand Up @@ -651,7 +715,71 @@ Generated by [AVA](https://avajs.dev).
},
{
assetName: 'assets/manifest.webmanifest',
content: 'binary assets/manifest.webmanifest',
content: `{␊
"dir": "auto",␊
"lang": "en-US",␊
"display": "standalone",␊
"orientation": "any",␊
"start_url": "/?homescreen=1",␊
"background_color": "#fff",␊
"theme_color": "#fff",␊
"icons": [␊
{␊
"src": "android-chrome-36x36.png",␊
"sizes": "36x36",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-48x48.png",␊
"sizes": "48x48",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-72x72.png",␊
"sizes": "72x72",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-96x96.png",␊
"sizes": "96x96",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-144x144.png",␊
"sizes": "144x144",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-192x192.png",␊
"sizes": "192x192",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-256x256.png",␊
"sizes": "256x256",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-384x384.png",␊
"sizes": "384x384",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-512x512.png",␊
"sizes": "512x512",␊
"type": "image/png",␊
"purpose": "any"␊
}␊
]␊
}`,
},
{
assetName: 'assets/mstile-144x144.png',
Expand Down Expand Up @@ -1000,7 +1128,71 @@ Generated by [AVA](https://avajs.dev).
},
{
assetName: 'assets/manifest.webmanifest',
content: 'binary assets/manifest.webmanifest',
content: `{␊
"dir": "auto",␊
"lang": "en-US",␊
"display": "standalone",␊
"orientation": "any",␊
"start_url": "/?homescreen=1",␊
"background_color": "#fff",␊
"theme_color": "#fff",␊
"icons": [␊
{␊
"src": "android-chrome-36x36.png",␊
"sizes": "36x36",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-48x48.png",␊
"sizes": "48x48",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-72x72.png",␊
"sizes": "72x72",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-96x96.png",␊
"sizes": "96x96",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-144x144.png",␊
"sizes": "144x144",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-192x192.png",␊
"sizes": "192x192",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-256x256.png",␊
"sizes": "256x256",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-384x384.png",␊
"sizes": "384x384",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-512x512.png",␊
"sizes": "512x512",␊
"type": "image/png",␊
"purpose": "any"␊
}␊
]␊
}`,
},
{
assetName: 'assets/mstile-144x144.png',
Expand Down
Binary file modified test/snapshots/html.false.test.mjs.snap
Binary file not shown.
66 changes: 65 additions & 1 deletion test/snapshots/html.multiple.test.mjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,71 @@ Generated by [AVA](https://avajs.dev).
},
{
assetName: 'assets/manifest.webmanifest',
content: 'binary assets/manifest.webmanifest',
content: `{␊
"dir": "auto",␊
"lang": "en-US",␊
"display": "standalone",␊
"orientation": "any",␊
"start_url": "/?homescreen=1",␊
"background_color": "#fff",␊
"theme_color": "#fff",␊
"icons": [␊
{␊
"src": "android-chrome-36x36.png",␊
"sizes": "36x36",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-48x48.png",␊
"sizes": "48x48",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-72x72.png",␊
"sizes": "72x72",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-96x96.png",␊
"sizes": "96x96",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-144x144.png",␊
"sizes": "144x144",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-192x192.png",␊
"sizes": "192x192",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-256x256.png",␊
"sizes": "256x256",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-384x384.png",␊
"sizes": "384x384",␊
"type": "image/png",␊
"purpose": "any"␊
},␊
{␊
"src": "android-chrome-512x512.png",␊
"sizes": "512x512",␊
"type": "image/png",␊
"purpose": "any"␊
}␊
]␊
}`,
},
{
assetName: 'assets/mstile-144x144.png',
Expand Down
Binary file modified test/snapshots/html.multiple.test.mjs.snap
Binary file not shown.
Loading

0 comments on commit 70ca01a

Please sign in to comment.