Commit b2038120 authored by Phil Hughes's avatar Phil Hughes

karma spec updates

parent 7c331ac9
...@@ -122,7 +122,9 @@ ...@@ -122,7 +122,9 @@
// we need to do this to prevent noteForm inconsistent content warning // we need to do this to prevent noteForm inconsistent content warning
// this is something we intentionally do so we need to recover the content // this is something we intentionally do so we need to recover the content
this.note.note = noteText; this.note.note = noteText;
if (this.$refs.noteBody) {
this.$refs.noteBody.$refs.noteForm.note = noteText; // TODO: This could be better this.$refs.noteBody.$refs.noteForm.note = noteText; // TODO: This could be better
}
}, },
}, },
created() { created() {
......
...@@ -98,7 +98,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`), ...@@ -98,7 +98,7 @@ Once you confirm %{deleteAccount}, it cannot be undone or recovered.`),
@toggle="toggleOpen" @toggle="toggleOpen"
@submit="onSubmit"> @submit="onSubmit">
<template slot="body" scope="props"> <template slot="body" slot-scope="props">
<p v-html="props.text"></p> <p v-html="props.text"></p>
<form <form
......
...@@ -431,9 +431,9 @@ describe('AppComponent', () => { ...@@ -431,9 +431,9 @@ describe('AppComponent', () => {
}); });
it('should render groups tree', (done) => { it('should render groups tree', (done) => {
vm.groups = [mockParentGroupItem]; vm.store.state.groups = [mockParentGroupItem];
vm.isLoading = false; vm.isLoading = false;
vm.pageInfo = mockPageInfo; vm.store.state.pageInfo = mockPageInfo;
Vue.nextTick(() => { Vue.nextTick(() => {
expect(vm.$el.querySelector('.groups-list-tree-container')).toBeDefined(); expect(vm.$el.querySelector('.groups-list-tree-container')).toBeDefined();
done(); done();
......
...@@ -42,6 +42,7 @@ describe('Markdown field component', () => { ...@@ -42,6 +42,7 @@ describe('Markdown field component', () => {
beforeEach(() => { beforeEach(() => {
spyOn(Vue.http, 'post').and.callFake(() => new Promise((resolve) => { spyOn(Vue.http, 'post').and.callFake(() => new Promise((resolve) => {
setTimeout(() => {
resolve({ resolve({
json() { json() {
return { return {
...@@ -49,6 +50,7 @@ describe('Markdown field component', () => { ...@@ -49,6 +50,7 @@ describe('Markdown field component', () => {
}; };
}, },
}); });
});
})); }));
previewLink = vm.$el.querySelector('.nav-links li:nth-child(2) a'); previewLink = vm.$el.querySelector('.nav-links li:nth-child(2) a');
......
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