mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Fix test errors
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
@@ -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')});
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user