From b7228648fc3fbfd8992fb42cb64c033b535749db Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 12 Apr 2019 10:05:43 +0200 Subject: [PATCH] fixed tests (missing dependency), fixed relativeDateTime language --- webapp/components/RelativeDateTime/Readme.md | 7 +++++++ .../index.spec.js} | 2 +- .../{RelativeDateTime.vue => RelativeDateTime/index.vue} | 6 +++--- webapp/package.json | 3 ++- webapp/yarn.lock | 5 +++++ 5 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 webapp/components/RelativeDateTime/Readme.md rename webapp/components/{RelativeDateTime.spec.js => RelativeDateTime/index.spec.js} (95%) rename webapp/components/{RelativeDateTime.vue => RelativeDateTime/index.vue} (86%) diff --git a/webapp/components/RelativeDateTime/Readme.md b/webapp/components/RelativeDateTime/Readme.md new file mode 100644 index 000000000..5e04466f9 --- /dev/null +++ b/webapp/components/RelativeDateTime/Readme.md @@ -0,0 +1,7 @@ +### Example + +Relative time from 08.03.2017 + +``` + +``` \ No newline at end of file diff --git a/webapp/components/RelativeDateTime.spec.js b/webapp/components/RelativeDateTime/index.spec.js similarity index 95% rename from webapp/components/RelativeDateTime.spec.js rename to webapp/components/RelativeDateTime/index.spec.js index b752581c0..6fde8e580 100644 --- a/webapp/components/RelativeDateTime.spec.js +++ b/webapp/components/RelativeDateTime/index.spec.js @@ -1,5 +1,5 @@ import { shallowMount, createLocalVue } from '@vue/test-utils' -import RelativeDateTime from './RelativeDateTime.vue' +import RelativeDateTime from './index' const localVue = createLocalVue() diff --git a/webapp/components/RelativeDateTime.vue b/webapp/components/RelativeDateTime/index.vue similarity index 86% rename from webapp/components/RelativeDateTime.vue rename to webapp/components/RelativeDateTime/index.vue index 469b26a4c..d512497f5 100644 --- a/webapp/components/RelativeDateTime.vue +++ b/webapp/components/RelativeDateTime/index.vue @@ -4,15 +4,15 @@