open-nomad/ui/tests/unit/serializers
Buck Doyle 4394c5b9ff
Add common serialiser abstractions (#8634)
This extracts some common API-idiosyncracy-handling patterns from model serialisers into properties that are processed by the application serialiser:

* arrayNullOverrides converts a null property value to an empty array
* mapToArray converts a map to an array of maps, using the original map keys as Name properties on the array maps
* separateNanos splits nanosecond-containing timestamps into millisecond timestamps and separate nanosecond properties
2020-08-20 12:14:49 -05:00
..
allocation-test.js Add embedded task group to allocation to reference when allocation is historical 2020-05-01 14:30:02 -07:00
application-test.js Add common serialiser abstractions (#8634) 2020-08-20 12:14:49 -05:00
deployment-test.js Remove all andThen and .then usages (except for integration tests) 2019-04-10 14:54:34 -07:00
evaluation-test.js UI: Add creation time to evaluations table (#6050) 2019-08-22 08:11:24 -05:00
job-plan-test.js Updated serializer unit tests 2019-04-22 17:20:52 -07:00
job-summary-test.js Remove all andThen and .then usages (except for integration tests) 2019-04-10 14:54:34 -07:00
job-test.js Remove all andThen and .then usages (except for integration tests) 2019-04-10 14:54:34 -07:00
network-test.js UI: Add IPv6 bracket-wrapping to network serializer (#6007) 2019-07-30 16:58:01 -05:00
node-test.js Guard against a null value for the HostVolumes hash 2020-03-26 09:54:59 -07:00
volume-test.js Add embedded task group to allocation to reference when allocation is historical 2020-05-01 14:30:02 -07:00