Fix test errors

This commit is contained in:
Phillip Thelen
2018-11-27 15:39:59 +01:00
parent cde279e489
commit 024e93e89b
3 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ import {
} from '../../../../website/server/libs/highlightMentions'; } from '../../../../website/server/libs/highlightMentions';
import mongoose from 'mongoose'; import mongoose from 'mongoose';
describe.only('highlightMentions', () => { describe('highlightMentions', () => {
beforeEach(() => { beforeEach(() => {
const mockFind = { const mockFind = {
select () { select () {

View File

@@ -250,9 +250,9 @@ export default {
}, },
mounted () { mounted () {
const links = this.$refs.markdownContainer.getElementsByTagName('a'); const links = this.$refs.markdownContainer.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) { for (let i = 0; i < links.length; i++) {
const link = links[i]; const link = links[i];
links[i].onclick = (event) => { links[i].onclick = () => {
event.preventDefault(); event.preventDefault();
this.$router.push({ path: link.getAttribute('href')}); this.$router.push({ path: link.getAttribute('href')});
}; };

View File

@@ -35,7 +35,6 @@
</template> </template>
<script> <script>
import debounce from 'lodash/debounce';
import VueTribute from 'vue-tribute'; import VueTribute from 'vue-tribute';
import axios from 'axios'; import axios from 'axios';