mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +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 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 CONTENT_TEST_COMMAND = 'mocha test/content --opts test/content/mocha.content.opts';
|
||||
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';
|
||||
|
||||
describe('Hatching Potion Locales', () => {
|
||||
each(hatchingPotions, (potion, key) => {
|
||||
each(potions, (potion, key) => {
|
||||
describe(`${key} Potion`, () => {
|
||||
it('has a valid text attribute', () => {
|
||||
expectValidTranslationString(potion.text);
|
||||
|
||||
Reference in New Issue
Block a user