Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 341 Bytes

1_ConstructorTestCases.md

File metadata and controls

13 lines (8 loc) · 341 Bytes

Test cases for the constructor

constructor(data)

The data from cars.json array is passed as a parameter data. If the parameter is missing, throws an exception 'data storage missing'.

Test 1: missing parameter throw an exception

new carRegister();

expect: This will throw an exception `'data storage missing'``