mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
cov: Ignore fallback conditions
This commit is contained in:
parent
a447249db1
commit
8c04f5d8a6
@ -88,6 +88,7 @@ async function readSource(frame) {
|
||||
}
|
||||
|
||||
// Fallback: use server bundle
|
||||
/* istanbul ignore if */
|
||||
if (!frame.contents) {
|
||||
frame.contents = this.resources.serverBundle.files[frame.fileName]
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ module.exports = async function nuxtMiddleware(req, res, next) {
|
||||
|
||||
preloadFiles.forEach(({ file, asType, fileWithoutQuery, extension }) => {
|
||||
// By default, we only preload scripts or css
|
||||
/* istanbul ignore if */
|
||||
if (!shouldPush && asType !== 'script' && asType !== 'style') {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user