mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Add additional tests 🧪
This commit is contained in:
parent
ac76e9d562
commit
2e81e61af3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.idea
|
.idea
|
||||||
node_modules
|
node_modules
|
||||||
|
coverage/
|
||||||
|
14
src/model/error/validation-error.test.js
Normal file
14
src/model/error/validation-error.test.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import ValidationError from './validation-error';
|
||||||
|
|
||||||
|
describe('ValidationError', () => {
|
||||||
|
it('instantiates', () => {
|
||||||
|
expect(() => new ValidationError()).not.toThrow();
|
||||||
|
});
|
||||||
|
|
||||||
|
test.each([1, 'one', { name: '!' }])('Displays title %s', message => {
|
||||||
|
const error = new ValidationError(message);
|
||||||
|
|
||||||
|
expect(error.name).toStrictEqual('ValidationError');
|
||||||
|
expect(error.message).toStrictEqual(message.toString());
|
||||||
|
});
|
||||||
|
});
|
@ -6,8 +6,8 @@ describe('Index', () => {
|
|||||||
'BuildParameters',
|
'BuildParameters',
|
||||||
'Cache',
|
'Cache',
|
||||||
'Docker',
|
'Docker',
|
||||||
'Input',
|
|
||||||
'ImageTag',
|
'ImageTag',
|
||||||
|
'Input',
|
||||||
'Platform',
|
'Platform',
|
||||||
'Project',
|
'Project',
|
||||||
'Unity',
|
'Unity',
|
||||||
|
Loading…
Reference in New Issue
Block a user