chore: Add ee helper, custom_attributes to account (#5058)
This commit is contained in:
@@ -2,6 +2,7 @@ import {
|
||||
getLoadingStatus,
|
||||
parseAPIErrorResponse,
|
||||
setLoadingStatus,
|
||||
throwErrorMessage,
|
||||
} from '../api';
|
||||
|
||||
describe('#getLoadingStatus', () => {
|
||||
@@ -37,3 +38,14 @@ describe('#parseAPIErrorResponse', () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#throwErrorMessage', () => {
|
||||
it('throws correct error', () => {
|
||||
const errorFn = function throwErrorMessageFn() {
|
||||
throwErrorMessage({
|
||||
response: { data: { message: 'Error Message [message]' } },
|
||||
});
|
||||
};
|
||||
expect(errorFn).toThrow('Error Message [message]');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user