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