f523e1eb6b
This keeps the constructor clean, relying on types for validation, whilst preserving the validation when creating the instance. The constructor is now private so that the factory which handles validation is always used. The tests have also been updated to test the public factory interface rather than the internal validation methods. Validation has been rolled into a single method and slightly improved in the way of readability. |
||
---|---|---|
.. | ||
utils | ||
.eslintrc.js | ||
attribution.test.js | ||
event-handler.test.js | ||
history.test.js | ||
service.test.js | ||
url-translator.test.js |