Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
style: lint ttfb fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Feb 10, 2021
1 parent de15f64 commit 8b4dff5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions test/fixture/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
<li><nuxt-link to="/meta">meta</nuxt-link></li>
<li><nuxt-link to="/wrappers">wrappers</nuxt-link></li>
</ul>
<div>
TTFB: {{ ttfb }}ms
</div>
<div>TTFB: {{ ttfb }}ms</div>
</main>
</template>

Expand All @@ -54,7 +52,7 @@ import {
ref,
computed,
useFetch,
onMounted
onMounted,
} from '@nuxtjs/composition-api'
import ChildComp from '../components/comp.vue'
Expand All @@ -80,15 +78,17 @@ export default defineComponent({
const ttfb = ref(-1)
onMounted(() => {
ttfb.value = globalThis.performance.getEntriesByType('navigation')[0].responseStart
ttfb.value = globalThis.performance.getEntriesByType(
'navigation'
)[0].responseStart
})
return {
name,
email,
computedProp,
myFunction,
ttfb
ttfb,
}
},
})
Expand Down
12 changes: 6 additions & 6 deletions test/fixture/pages/ttfb.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<template>
<main>
TTFB: {{ ttfb }}ms
</main>
<main>TTFB: {{ ttfb }}ms</main>
</template>

<script>
Expand All @@ -10,7 +8,7 @@ import {
ref,
computed,
useFetch,
onMounted
onMounted,
} from '@nuxtjs/composition-api'
import ChildComp from '../components/comp.vue'
Expand All @@ -22,11 +20,13 @@ export default defineComponent({
const ttfb = ref(-1)
onMounted(() => {
ttfb.value = globalThis.performance.getEntriesByType('navigation')[0].responseStart
ttfb.value = globalThis.performance.getEntriesByType(
'navigation'
)[0].responseStart
})
return {
ttfb
ttfb,
}
},
})
Expand Down

0 comments on commit 8b4dff5

Please sign in to comment.