tf2-currency
Version:
Set of tools that manage operations with tf2 currency.
13 lines (10 loc) • 436 B
text/typescript
import { CurrencyError } from './currency.error';
describe('CurrencyError', () => {
it('Creates an error with said message and has correct name', () => {
const message = 'Supplied key value is negative';
const error = new CurrencyError(message);
expect(error).toHaveProperty('message', message);
expect(error.name).toEqual('CurrencyError');
expect(error.stack?.includes('CurrencyError')).toBeTruthy();
});
});