From 4d2448e03a4f73edc785bd89620fa8c5efdf3def Mon Sep 17 00:00:00 2001 From: Sean Nichols Date: Thu, 13 Dec 2018 01:49:32 -0500 Subject: [PATCH] Add tests and move empty file message into own component --- .../diffs/components/diff_content.vue | 6 +- .../diff_viewer/viewers/empty_file.vue | 3 + .../diffs/components/diff_content_spec.js | 31 +++++++ spec/lib/gitlab/diff/file_spec.rb | 89 +++++++++++++++++++ .../serializers/diff_file_entity_examples.rb | 2 +- 5 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 app/assets/javascripts/vue_shared/components/diff_viewer/viewers/empty_file.vue diff --git a/app/assets/javascripts/diffs/components/diff_content.vue b/app/assets/javascripts/diffs/components/diff_content.vue index e9e9c8a5ec9..452938a2200 100644 --- a/app/assets/javascripts/diffs/components/diff_content.vue +++ b/app/assets/javascripts/diffs/components/diff_content.vue @@ -1,6 +1,7 @@