mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
misc test
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
"npm": "^6"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint --ext .js,.vue .",
|
||||
"lint": "eslint --ext .js . && cd website/client && npm run lint",
|
||||
"test": "npm run lint && gulp test && gulp apidoc",
|
||||
"test:build": "gulp test:prepare:build",
|
||||
"test:api-v3": "gulp test:api-v3",
|
||||
|
||||
@@ -15,5 +15,5 @@ let sinonStubPromise = require('sinon-stub-promise');
|
||||
sinonStubPromise(global.sinon);
|
||||
global.sandbox = sinon.createSandbox();
|
||||
|
||||
import setupNconf from '../../website/server/libs/setupNconf';
|
||||
const setupNconf = require('../../website/server/libs/setupNconf');
|
||||
setupNconf('./config.json.example');
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
--reporter spec
|
||||
--timeout 8000
|
||||
--check-leaks
|
||||
--globals io
|
||||
--require @babel/register
|
||||
--require ./test/helpers/globals.helper
|
||||
--exit
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"test:unit": "vue-cli-service test:unit",
|
||||
"test:unit": "vue-cli-service test:unit --opts ../../test/mocha.opts",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { asyncResourceFactory, loadAsyncResource } from '@/libs/asyncResource';
|
||||
import axios from 'axios';
|
||||
import generateStore from '@/store';
|
||||
import { sleep } from '../../../../helpers/sleep';
|
||||
import { sleep } from '@/../../../test/helpers/sleep';
|
||||
|
||||
describe('async resource', () => {
|
||||
it('asyncResourceFactory', () => {
|
||||
|
||||
Reference in New Issue
Block a user