mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
15 lines
467 B
JavaScript
15 lines
467 B
JavaScript
import CommandExecutionError from './command-execution-error';
|
|
|
|
describe('CommandExecutionError', () => {
|
|
it('instantiates', () => {
|
|
expect(() => new CommandExecutionError()).not.toThrow();
|
|
});
|
|
|
|
test.each([1, 'one', { name: '!' }])('Displays title %s', (message) => {
|
|
const error = new CommandExecutionError(message);
|
|
|
|
expect(error.name).toStrictEqual('CommandExecutionError');
|
|
expect(error.message).toStrictEqual(message.toString());
|
|
});
|
|
});
|