mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Correct tests
This commit is contained in:
@@ -11,7 +11,7 @@ const TEST_DB = 'habitrpg_test'
|
|||||||
|
|
||||||
const TEST_DB_URI = `mongodb://localhost/${TEST_DB}`
|
const TEST_DB_URI = `mongodb://localhost/${TEST_DB}`
|
||||||
|
|
||||||
const API_TEST_COMMAND = 'mocha test/api --opts test/mocha.opts';
|
const API_TEST_COMMAND = 'mocha test/api';
|
||||||
const COMMON_TEST_COMMAND = 'mocha test/common';
|
const COMMON_TEST_COMMAND = 'mocha test/common';
|
||||||
const CONTENT_TEST_COMMAND = 'mocha test/content --opts test/content/mocha.content.opts';
|
const CONTENT_TEST_COMMAND = 'mocha test/content --opts test/content/mocha.content.opts';
|
||||||
const KARMA_TEST_COMMAND = 'karma start';
|
const KARMA_TEST_COMMAND = 'karma start';
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import hatchingPotions from '../../common/script/src/content/hatching-potions';
|
import { all as potions } from '../../common/script/src/content/hatching-potions';
|
||||||
import {each} from 'lodash';
|
import {each} from 'lodash';
|
||||||
|
|
||||||
describe('Hatching Potion Locales', () => {
|
describe('Hatching Potion Locales', () => {
|
||||||
each(hatchingPotions, (potion, key) => {
|
each(potions, (potion, key) => {
|
||||||
describe(`${key} Potion`, () => {
|
describe(`${key} Potion`, () => {
|
||||||
it('has a valid text attribute', () => {
|
it('has a valid text attribute', () => {
|
||||||
expectValidTranslationString(potion.text);
|
expectValidTranslationString(potion.text);
|
||||||
|
|||||||
Reference in New Issue
Block a user