Skip to content

Commit

Permalink
fix unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
myst729 committed Jan 6, 2018
1 parent 6c03d85 commit 10b6e4f
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><title>Vuelog</title><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><link rel=icon href=./static/vuelog.png type=image/png sizes=256x256><link rel=icon href=./static/vuelog.svg type=image/svg+xml sizes=any><link href=./static/css/app.acb3f853e5d1823081e76b379fbef7b0.css rel=stylesheet></head><body><div id=app><p class=loading>Loading...</p></div><script src=./userdata/database.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/lib/fastclick.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/marked.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/prism.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vue.runtime.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vue-router.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/lib/vue-meta.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vuex.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vue-i18n.min.js></script><script type=text/javascript src=./static/js/app.5558d35835cfe7f66865.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><title>Vuelog</title><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui"><link rel=icon href=./static/vuelog.png type=image/png sizes=256x256><link rel=icon href=./static/vuelog.svg type=image/svg+xml sizes=any><link href=./static/css/app.7fe106a399e878cbcae6756f5cd12851.css rel=stylesheet></head><body><div id=app><p class=loading>Loading...</p></div><script src=./userdata/database.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/lib/fastclick.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/marked.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/prism.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vue.runtime.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vue-router.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/lib/vue-meta.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vuex.min.js></script><script type=text/javascript src=//cdn.jsdelivr.net/npm/[email protected]/dist/vue-i18n.min.js></script><script type=text/javascript src=./static/js/app.a335a2ca9c02f74fa9e3.js></script></body></html>
1 change: 1 addition & 0 deletions docs/static/css/app.7fe106a399e878cbcae6756f5cd12851.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/static/css/app.acb3f853e5d1823081e76b379fbef7b0.css

This file was deleted.

1 change: 0 additions & 1 deletion docs/static/js/app.5558d35835cfe7f66865.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/static/js/app.a335a2ca9c02f74fa9e3.js

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions src/assets/styles/content.styl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@
font-weight 600

h4
span.light
color #7f8c8d

span.super
display inline-block
padding 5px 8px
font-size 14px
line-height 1
background #34495e
color #fff
border-radius 3px
vertical-align super

img:only-child
img.lone-block
video:only-child
Expand All @@ -30,9 +41,6 @@
border 1px solid #ccc
padding 3px

span.light
color #7f8c8d

figure
p
ul
Expand Down
2 changes: 1 addition & 1 deletion src/components/VuelogHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
export default {
name: 'vuelog-header',
Expand Down
2 changes: 1 addition & 1 deletion src/components/VuelogNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
export default {
name: 'vuelog-navigation',
Expand Down
2 changes: 1 addition & 1 deletion src/components/VuelogRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
import marked from 'marked'
import Prism from 'prismjs'
import { meaningfulTime, retrieveByLanguage } from '../helpers'
import { meaningfulTime, retrieveByLanguage } from '../utils'
import VuelogPagination from './VuelogPagination'
import VuelogSpinner from './VuelogSpinner'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/views/VuelogArchive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
export default {
name: 'vuelog-archive',
Expand Down
2 changes: 1 addition & 1 deletion src/views/VuelogHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
export default {
name: 'vuelog-home',
Expand Down
2 changes: 1 addition & 1 deletion src/views/VuelogOops.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
export default {
name: 'vuelog-oops',
Expand Down
2 changes: 1 addition & 1 deletion src/views/VuelogPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
import VuelogRenderer from '../components/VuelogRenderer'
import VuelogComments from '../components/VuelogComments'
Expand Down
2 changes: 1 addition & 1 deletion src/views/VuelogPost.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
import VuelogRenderer from '../components/VuelogRenderer'
import VuelogComments from '../components/VuelogComments'
import VuelogNavigation from '../components/VuelogNavigation'
Expand Down
2 changes: 1 addition & 1 deletion src/views/VuelogPosts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</template>

<script>
import { retrieveByLanguage } from '../helpers'
import { retrieveByLanguage } from '../utils'
import VuelogRenderer from '../components/VuelogRenderer'
import VuelogNavigation from '../components/VuelogNavigation'
Expand Down
7 changes: 3 additions & 4 deletions test/unit/jest.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ module.exports = {
mapCoverage: true,
coverageDirectory: '<rootDir>/test/unit/coverage',
collectCoverageFrom: [
'src/**/*.{js,vue}',
'!src/main.js',
'!src/router/index.js',
'!**/node_modules/**'
'src/store/**/*.{js}',
'src/utils/**/*.{js}',
'!src/store/index.js'
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { meaningfulTime, retrieveByLanguage } from 'src/helpers'
import { meaningfulTime, retrieveByLanguage } from 'src/utils'

describe('Helpers', () => {
it('Meaningful time: 3 years ago', () => {
Expand Down

0 comments on commit 10b6e4f

Please sign in to comment.