fixed tests (missing dependency), fixed relativeDateTime language

This commit is contained in:
Ulf Gebhardt 2019-04-12 10:05:43 +02:00
parent e6ee0477cf
commit b7228648fc
No known key found for this signature in database
GPG Key ID: 44C888923CC8E7F3
5 changed files with 18 additions and 5 deletions

View File

@ -0,0 +1,7 @@
### Example
Relative time from 08.03.2017
```
<hc-relative-date-time dateTime="03.08.2017" />
```

View File

@ -1,5 +1,5 @@
import { shallowMount, createLocalVue } from '@vue/test-utils'
import RelativeDateTime from './RelativeDateTime.vue'
import RelativeDateTime from './index'
const localVue = createLocalVue()

View File

@ -4,15 +4,15 @@
<script>
import formatRelative from 'date-fns/formatRelative'
import { enUS, de, nl, fr, pt, es, pl } from 'date-fns/locale'
import { enUS, de, nl, fr, pt, es /*, pl*/ } from 'date-fns/locale'
const locales = {
en: enUS,
de,
nl,
fr,
es,
pt,
pl
pt
//pl
}
export default {

View File

@ -49,6 +49,7 @@
"linkify-it": "~2.1.0",
"nuxt": "~2.6.1",
"nuxt-env": "~0.1.0",
"stack-utils": "^1.0.2",
"string-hash": "^1.1.3",
"tiptap": "^1.14.0",
"tiptap-extensions": "^1.14.0",
@ -81,4 +82,4 @@
"vue-jest": "~3.0.4",
"vue-svg-loader": "~0.12.0"
}
}
}

View File

@ -9865,6 +9865,11 @@ stack-trace@0.0.10:
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=
stack-utils@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8"
integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==
stackframe@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/stackframe/-/stackframe-1.0.4.tgz#357b24a992f9427cba6b545d96a14ed2cbca187b"