mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Fix test errors
This commit is contained in:
@@ -3,7 +3,7 @@ import {
|
||||
} from '../../../../website/server/libs/highlightMentions';
|
||||
import mongoose from 'mongoose';
|
||||
|
||||
describe.only('highlightMentions', () => {
|
||||
describe('highlightMentions', () => {
|
||||
beforeEach(() => {
|
||||
const mockFind = {
|
||||
select () {
|
||||
|
||||
@@ -250,9 +250,9 @@ export default {
|
||||
},
|
||||
mounted () {
|
||||
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];
|
||||
links[i].onclick = (event) => {
|
||||
links[i].onclick = () => {
|
||||
event.preventDefault();
|
||||
this.$router.push({ path: link.getAttribute('href')});
|
||||
};
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import debounce from 'lodash/debounce';
|
||||
import VueTribute from 'vue-tribute';
|
||||
import axios from 'axios';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user