Commit 545ba40a authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Tidy scope of repo specs

parent 417830ae
...@@ -3,9 +3,9 @@ import Store from '~/repo/repo_store'; ...@@ -3,9 +3,9 @@ import Store from '~/repo/repo_store';
import repoBinaryViewer from '~/repo/repo_binary_viewer.vue'; import repoBinaryViewer from '~/repo/repo_binary_viewer.vue';
describe('RepoBinaryViewer', () => { describe('RepoBinaryViewer', () => {
const RepoBinaryViewer = Vue.extend(repoBinaryViewer);
function createComponent() { function createComponent() {
const RepoBinaryViewer = Vue.extend(repoBinaryViewer);
return new RepoBinaryViewer().$mount(); return new RepoBinaryViewer().$mount();
} }
......
...@@ -2,9 +2,9 @@ import Vue from 'vue'; ...@@ -2,9 +2,9 @@ import Vue from 'vue';
import repoEditor from '~/repo/repo_editor.vue'; import repoEditor from '~/repo/repo_editor.vue';
describe('RepoEditor', () => { describe('RepoEditor', () => {
const RepoEditor = Vue.extend(repoEditor);
function createComponent() { function createComponent() {
const RepoEditor = Vue.extend(repoEditor);
return new RepoEditor().$mount(); return new RepoEditor().$mount();
} }
......
...@@ -2,10 +2,11 @@ import Vue from 'vue'; ...@@ -2,10 +2,11 @@ import Vue from 'vue';
import repoFileOptions from '~/repo/repo_file_options.vue'; import repoFileOptions from '~/repo/repo_file_options.vue';
describe('RepoFileOptions', () => { describe('RepoFileOptions', () => {
const RepoFileOptions = Vue.extend(repoFileOptions);
const projectName = 'projectName'; const projectName = 'projectName';
function createComponent(propsData) { function createComponent(propsData) {
const RepoFileOptions = Vue.extend(repoFileOptions);
return new RepoFileOptions({ return new RepoFileOptions({
propsData, propsData,
}).$mount(); }).$mount();
......
...@@ -2,7 +2,6 @@ import Vue from 'vue'; ...@@ -2,7 +2,6 @@ import Vue from 'vue';
import repoFile from '~/repo/repo_file.vue'; import repoFile from '~/repo/repo_file.vue';
describe('RepoFile', () => { describe('RepoFile', () => {
const RepoFile = Vue.extend(repoFile);
const file = { const file = {
icon: 'icon', icon: 'icon',
url: 'url', url: 'url',
...@@ -16,6 +15,8 @@ describe('RepoFile', () => { ...@@ -16,6 +15,8 @@ describe('RepoFile', () => {
}; };
function createComponent(propsData) { function createComponent(propsData) {
const RepoFile = Vue.extend(repoFile);
return new RepoFile({ return new RepoFile({
propsData, propsData,
}).$mount(); }).$mount();
......
...@@ -2,9 +2,9 @@ import Vue from 'vue'; ...@@ -2,9 +2,9 @@ import Vue from 'vue';
import repoLoadingFile from '~/repo/repo_loading_file.vue'; import repoLoadingFile from '~/repo/repo_loading_file.vue';
describe('RepoLoadingFile', () => { describe('RepoLoadingFile', () => {
const RepoLoadingFile = Vue.extend(repoLoadingFile);
function createComponent(propsData) { function createComponent(propsData) {
const RepoLoadingFile = Vue.extend(repoLoadingFile);
return new RepoLoadingFile({ return new RepoLoadingFile({
propsData, propsData,
}).$mount(); }).$mount();
......
...@@ -2,9 +2,9 @@ import Vue from 'vue'; ...@@ -2,9 +2,9 @@ import Vue from 'vue';
import repoPrevDirectory from '~/repo/repo_prev_directory.vue'; import repoPrevDirectory from '~/repo/repo_prev_directory.vue';
describe('RepoPrevDirectory', () => { describe('RepoPrevDirectory', () => {
const RepoPrevDirectory = Vue.extend(repoPrevDirectory);
function createComponent(propsData) { function createComponent(propsData) {
const RepoPrevDirectory = Vue.extend(repoPrevDirectory);
return new RepoPrevDirectory({ return new RepoPrevDirectory({
propsData, propsData,
}).$mount(); }).$mount();
......
...@@ -2,9 +2,9 @@ import Vue from 'vue'; ...@@ -2,9 +2,9 @@ import Vue from 'vue';
import repoTab from '~/repo/repo_tab.vue'; import repoTab from '~/repo/repo_tab.vue';
describe('RepoTab', () => { describe('RepoTab', () => {
const RepoTab = Vue.extend(repoTab);
function createComponent(propsData) { function createComponent(propsData) {
const RepoTab = Vue.extend(repoTab);
return new RepoTab({ return new RepoTab({
propsData, propsData,
}).$mount(); }).$mount();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment