mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Update tests to assert against translation strings
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {
|
||||
generateUser,
|
||||
requester,
|
||||
translate as t,
|
||||
} from '../../../helpers/api.helper';
|
||||
|
||||
import { each } from 'lodash';
|
||||
@@ -49,7 +50,7 @@ describe('POST /user/batch-update', () => {
|
||||
{op: operation},
|
||||
])).to.eventually.be.rejected.and.eql({
|
||||
code: 500,
|
||||
text: `${operation} operation not found`,
|
||||
text: t('messageUserOperationNotFound', { operation: operation}),
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -61,7 +62,7 @@ describe('POST /user/batch-update', () => {
|
||||
{op: 'aNotRealOperation'},
|
||||
])).to.eventually.be.rejected.and.eql({
|
||||
code: 500,
|
||||
text: 'aNotRealOperation operation not found',
|
||||
text: t('messageUserOperationNotFound', { operation: 'aNotRealOperation' }),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user