mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 15:38:59 +00:00
Fix test errors
This commit is contained in:
parent
cde279e489
commit
024e93e89b
3 changed files with 3 additions and 4 deletions
|
|
@ -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';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue