UNPKG

superdata

Version:

A lightweight data layer module motivated by extjs' data layer. It can be used with any client-side framework.

308 lines 37.9 kB
<?xml version="1.0" encoding="UTF-8" ?> <testsuites disabled="0" errors="0" failures="0" tests="155" time="1.131"> <testsuite name="modelObject" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.22" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="modelObject" name="save without diff" time="0.103" /> <testcase classname="modelObject" name="save" time="0.06" /> <testcase classname="modelObject" name="patch without diff" time="0.021" /> <testcase classname="modelObject" name="patch" time="0.033" /> </testsuite> <testsuite name="model" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.058" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="model" name="config" time="0.002" /> <testcase classname="model" name="list" time="0.046" /> <testcase classname="model" name="load" time="0.002" /> <testcase classname="model" name="create" time="0.001" /> </testsuite> <testsuite name="model.belongsTo" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.007" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="model.belongsTo.with invalid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="model.belongsTo.with invalid config" name="should throw an error if options.belongsTo is not array" time="0.001" /> </testsuite> <testsuite name="model.belongsTo.with valid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.005" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="model.belongsTo.with valid config" name="should call callback with error if no projectID is given" time="0" /> <testcase classname="model.belongsTo.with valid config" name="should call callback with error if projectID&apos;s type isn&apos;t match to fields.projectID.type" time="0.001" /> <testcase classname="model.belongsTo.with valid config" name="should pass belongsToValues as parameter to proxy&apos;s functions" time="0.002" /> <testcase classname="model.belongsTo.with valid config" name="should pass only properties of belongsTo from belongsToValues" time="0.001" /> </testsuite> <testsuite name="Test prop should be function...." timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="Test prop should be function...." name="function should be defined" time="0" /> </testsuite> <testsuite name="Test prop value...." timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="Test prop value...." name="prop set get" time="0" /> <testcase classname="Test prop value...." name="before after callback" time="0" /> <testcase classname="Test prop value...." name="before after sholud not be called" time="0.001" /> </testsuite> <testsuite name="ajax helpers" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.023" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax helpers.with missing dependencies" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with missing dependencies" name="should throw error if dependencies.createReader is missing" time="0.001" /> <testcase classname="ajax helpers.with missing dependencies" name="should throw error if dependencies.request is missing" time="0.001" /> </testsuite> <testsuite name="ajax helpers.with valid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.021" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax helpers.with valid config.createOperationConfig" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.createOperationConfig" name="should return a common object with properties of id, data and every property of config" time="0" /> <testcase classname="ajax helpers.with valid config.createOperationConfig" name="should return a common object with properties of id, every property of config and a data property containing an empty object" time="0.001" /> <testcase classname="ajax helpers.with valid config.createOperationConfig" name="should set timeout property to defaultTimeout if timeout parameter is not truthy" time="0.001" /> </testsuite> <testsuite name="ajax helpers.with valid config.dispatchAjax" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.013" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax helpers.with valid config.dispatchAjax.without filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.013" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax helpers.with valid config.dispatchAjax.without filters.with one route" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.dispatchAjax.without filters.with one route" name="has to call mocked request functions" time="0.002" /> </testsuite> <testsuite name="ajax helpers.with valid config.dispatchAjax.without filters.with several methods" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.005" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.dispatchAjax.without filters.with several methods" name="has to call request.post when actConfig.method is post and has to call callback function" time="0.001" /> <testcase classname="ajax helpers.with valid config.dispatchAjax.without filters.with several methods" name="has to call request.put when actConfig.method is put and has to call callback function" time="0.001" /> <testcase classname="ajax helpers.with valid config.dispatchAjax.without filters.with several methods" name="has to call request.del when actConfig.method is del and has to call callback function" time="0.001" /> </testsuite> <testsuite name="ajax helpers.with valid config.dispatchAjax.without filters.with many routes" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.dispatchAjax.without filters.with many routes" name="has to call request&apos;s methods 3 times" time="0.004" /> </testsuite> <testsuite name="ajax helpers.with valid config.dispatchAjax.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.dispatchAjax.with filters" name="has to replace filter values in actRoute" time="0" /> </testsuite> <testsuite name="ajax helpers.with valid config.prepareOperationsConfig" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax helpers.with valid config.prepareOperationsConfig.with invalid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.prepareOperationsConfig.with invalid config" name="should throw an error when config parameter is not an object" time="0" /> <testcase classname="ajax helpers.with valid config.prepareOperationsConfig.with invalid config" name="should throw an error when one property&apos;s value of config is undefined" time="0" /> <testcase classname="ajax helpers.with valid config.prepareOperationsConfig.with invalid config" name="should throw an error when one of config&apos;s properties hasn&apos;t property route and method with given truthy value" time="0.001" /> </testsuite> <testsuite name="ajax helpers.with valid config.prepareOperationsConfig.with valid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.prepareOperationsConfig.with valid config" name="should have properties &apos;queries&apos;, &apos;accept&apos;, &apos;type&apos;, &apos;reader&apos; of each property of config object after calling function prepareOperationsConfig" time="0.001" /> </testsuite> <testsuite name="ajax helpers.with valid config.assert" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax helpers.with valid config.assert" name="should throw error when condition is not given" time="0.001" /> </testsuite> <testsuite name="ajax proxy" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.021" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.included in superData" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.included in superData" name="creator function should be defined" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with missing dependecies" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with missing dependecies" name="should throw error if dependencies is missing" time="0" /> <testcase classname="ajax proxy.with missing dependecies" name="should throw error if dependencies.ajaxHelpers is missing" time="0" /> <testcase classname="ajax proxy.with missing dependecies" name="should throw error if dependencies.FormData is missing" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with invalid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with invalid config" name="should throw error if config empty" time="0.001" /> <testcase classname="ajax proxy.with invalid config" name="should throw an error if config.idProperty is missing" time="0" /> <testcase classname="ajax proxy.with invalid config" name="should throw error if config.operations is missing" time="0.001" /> <testcase classname="ajax proxy.with invalid config" name="should throw error if config.fieldsToBeExcluded is given but it&apos;s not an array" time="0" /> </testsuite> <testsuite name="ajax proxy.with valid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.016" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.with valid config.read" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.with valid config.read.without filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.read.without filters" name="should call ajaxHelpers.assert, ajaxHelpers.createOperationConfig, ajaxHelpers.dispatchAjax (with expectations to actConfig parameter) and callback" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with valid config.read.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.read.with filters" name="should call ajaxHelpers.dispatchAjax with pass filters as parameter" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with valid config.createOne" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.createOne" name="should call ajaxHelpers.assert, ajaxHelpers.createOperationConfig, ajaxHelpers.dispatchAjax and callback" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with valid config.readOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.005" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.with valid config.readOneById.without filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.readOneById.without filters" name="should call ajaxHelpers.assert, ajaxHelpers.createOperationConfig, ajaxHelpers.dispatchAjax and callback" time="0.002" /> </testsuite> <testsuite name="ajax proxy.with valid config.readOneById.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.readOneById.with filters" name="should call ajaxHelpers.dispatchAjax with pass filters as parameter" time="0.002" /> </testsuite> <testsuite name="ajax proxy.with valid config.updateOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.with valid config.updateOneById.without filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.updateOneById.without filters" name="should call ajaxHelpers.assert, ajaxHelpers.createOperationConfig, ajaxHelpers.dispatchAjax and callback" time="0" /> </testsuite> <testsuite name="ajax proxy.with valid config.updateOneById.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.updateOneById.with filters" name="should call ajaxHelpers.dispatchAjax with pass filters as parameter" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with valid config.patchOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.with valid config.patchOneById.without filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.patchOneById.without filters" name="should call ajaxHelpers.assert, ajaxHelpers.createOperationConfig, ajaxHelpers.dispatchAjax and callback" time="0" /> </testsuite> <testsuite name="ajax proxy.with valid config.patchOneById.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.patchOneById.with filters" name="should call ajaxHelpers.dispatchAjax with pass filters as parameter" time="0.001" /> </testsuite> <testsuite name="ajax proxy.with valid config.destroyOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="ajax proxy.with valid config.destroyOneById.without filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.destroyOneById.without filters" name="should call ajaxHelpers.assert, ajaxHelpers.createOperationConfig, ajaxHelpers.dispatchAjax and callback" time="0" /> </testsuite> <testsuite name="ajax proxy.with valid config.destroyOneById.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="ajax proxy.with valid config.destroyOneById.with filters" name="should call ajaxHelpers.dispatchAjax with pass filters as parameter" time="0.002" /> </testsuite> <testsuite name="localStorage proxy" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.007" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="localStorage proxy.with missing dependecies" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="localStorage proxy.with missing dependecies" name="should throw error if dependencies.createMemoryProxy is missing" time="0" /> <testcase classname="localStorage proxy.with missing dependecies" name="should throw error if dependencies.storage is missing" time="0" /> </testsuite> <testsuite name="localStorage proxy.creator function" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.006" errors="0" tests="7" skipped="0" disabled="0" failures="0"> <testcase classname="localStorage proxy.creator function" name="interface" time="0.001" /> <testcase classname="localStorage proxy.creator function" name="read" time="0.001" /> <testcase classname="localStorage proxy.creator function" name="createOne" time="0.002" /> <testcase classname="localStorage proxy.creator function" name="readOneById" time="0.001" /> <testcase classname="localStorage proxy.creator function" name="updateOneById" time="0.001" /> <testcase classname="localStorage proxy.creator function" name="patchOneById" time="0" /> <testcase classname="localStorage proxy.creator function" name="destroyOneById" time="0" /> </testsuite> <testsuite name="memory proxy" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.095" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="memory proxy.included in superData" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.included in superData" name="creator function should be defined" time="0" /> </testsuite> <testsuite name="memory proxy.with missing dependencies" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with missing dependencies" name="should throw error if dependencies is missing" time="0" /> <testcase classname="memory proxy.with missing dependencies" name="should throw error if dependencies.messages is missing" time="0.002" /> </testsuite> <testsuite name="memory proxy.with invalid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with invalid config" name="config empty" time="0" /> <testcase classname="memory proxy.with invalid config" name="config with idType" time="0" /> <testcase classname="memory proxy.with invalid config" name="config with idProperty" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.092" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config" name="should throw error if given callback is not a function" time="0.002" /> <testcase classname="memory proxy.with valid config" name="should throw error if it can&apos;t cast given id to number if given idType is number" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.read" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.read" name="should read data even if options parameter is falsy" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.createOne" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.createOne" name="should generate Id if data[idProperty] is undefined" time="0.001" /> <testcase classname="memory proxy.with valid config.createOne" name="should call callback function" time="0" /> <testcase classname="memory proxy.with valid config.createOne" name="should push data to it&apos;s db array and call callback with data" time="0.001" /> <testcase classname="memory proxy.with valid config.createOne" name="should call callback with duplicate key error if id exists" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.readOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.readOneById" name="should call callback with read data" time="0.001" /> <testcase classname="memory proxy.with valid config.readOneById" name="should call callback function" time="0" /> <testcase classname="memory proxy.with valid config.readOneById" name="should call callback with not found error if id doesn&apos;t exist" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.updateOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.updateOneById" name="should call callback with new data" time="0" /> <testcase classname="memory proxy.with valid config.updateOneById" name="should call callback function" time="0.001" /> <testcase classname="memory proxy.with valid config.updateOneById" name="should not change original id" time="0.001" /> <testcase classname="memory proxy.with valid config.updateOneById" name="should call callback with not found error if id doesn&apos;t exist" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.patchOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.002" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.patchOneById" name="should call callback with new data" time="0" /> <testcase classname="memory proxy.with valid config.patchOneById" name="should call callback function" time="0" /> <testcase classname="memory proxy.with valid config.patchOneById" name="should not change original id" time="0" /> <testcase classname="memory proxy.with valid config.patchOneById" name="should call callback with not found error if id doesn&apos;t exist" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.destroyOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.destroyOneById" name="should call callback with deleted data" time="0.001" /> <testcase classname="memory proxy.with valid config.destroyOneById" name="should call callback function" time="0.001" /> <testcase classname="memory proxy.with valid config.destroyOneById" name="should delete element" time="0" /> <testcase classname="memory proxy.with valid config.destroyOneById" name="should call callback with not found error if id doesn&apos;t exist" time="0.001" /> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.068" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.067" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.067" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy" name="proxy should have the following functions" time="0" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy" name="createOne" time="0.004" /> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.049" errors="0" tests="14" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: undefined, skip: 0, limit: 10" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: undefined, skip: 0, limit: 7" time="0.003" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: undefined, skip: 3, limit: 13" time="0.003" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: {&quot;id&quot;:1}, skip: undefined, limit: undefined" time="0.005" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: {&quot;id&quot;:-1}, skip: undefined, limit: undefined" time="0.006" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: {&quot;str&quot;:1}, skip: undefined, limit: undefined" time="0.004" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {}, sort: {&quot;str&quot;:-1}, skip: undefined, limit: undefined" time="0.006" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;id&quot;:16}, sort: {&quot;id&quot;:1}, skip: undefined, limit: undefined" time="0.003" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;user.email&quot;:&quot;/gmail/&quot;}, sort: {&quot;id&quot;:1}, skip: undefined, limit: 10" time="0.005" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;user.email&quot;:&quot;/5/&quot;}, sort: {&quot;id&quot;:-1}, skip: undefined, limit: 7" time="0.003" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;user.name&quot;:&quot;/0/&quot;}, sort: {&quot;id&quot;:1}, skip: undefined, limit: undefined" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;user.name&quot;:&quot;/16/&quot;}, sort: {&quot;id&quot;:1}, skip: undefined, limit: undefined" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;str&quot;:&quot;/0/&quot;}, sort: {&quot;id&quot;:1}, skip: undefined, limit: undefined" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read" name="find: {&quot;str&quot;:&quot;/1/&quot;}, sort: {&quot;id&quot;:1}, skip: undefined, limit: 3" time="0.002" /> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read - defaults &amp; invalid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read - defaults &amp; invalid config" name="find: {}, sort: undefined, skip: undefined, limit: undefined" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.read - defaults &amp; invalid config" name="find: {}, sort: undefined, skip: -3, limit: -10" time="0.001" /> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.readOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.readOneById" name="with valid id" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.readOneById" name="with invalid id" time="0.001" /> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.updateOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.updateOneById" name="with valid id" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.updateOneById" name="with invalid id" time="0.002" /> </testsuite> <testsuite name="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.destroyOneById" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.destroyOneById" name="with valid id" time="0.002" /> <testcase classname="memory proxy.with valid config.proxy behaviour.should complete proxyBehaviour tests.memory proxy.destroyOneById" name="with invalid id" time="0.001" /> </testsuite> <testsuite name="memory proxy.with valid config.with filters" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.005" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.with filters" name="read should check filter parameters" time="0.002" /> <testcase classname="memory proxy.with valid config.with filters" name="readOneById should check filter parameters" time="0" /> <testcase classname="memory proxy.with valid config.with filters" name="updateOneById should check filter parameters" time="0.001" /> <testcase classname="memory proxy.with valid config.with filters" name="destroyOneById should check filter parameters" time="0" /> </testsuite> <testsuite name="memory proxy.with valid config.with find in array" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="memory proxy.with valid config.with find in array" name="has to return elements containing find string" time="0.001" /> <testcase classname="memory proxy.with valid config.with find in array" name="has to return elements matching find regexp" time="0.001" /> <testcase classname="memory proxy.with valid config.with find in array" name="has to return elements matching find string array" time="0.001" /> <testcase classname="memory proxy.with valid config.with find in array" name="has to return elements matching find regexp array" time="0.001" /> </testsuite> <testsuite name="Rest proxy" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.012" errors="0" tests="0" skipped="0" disabled="0" failures="0"> </testsuite> <testsuite name="Rest proxy.included in superData" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="1" skipped="0" disabled="0" failures="0"> <testcase classname="Rest proxy.included in superData" name="creator function should be defined" time="0.001" /> </testsuite> <testsuite name="Rest proxy.with missing dependencies" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.001" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="Rest proxy.with missing dependencies" name="should throw error if dependencies is missing" time="0.001" /> <testcase classname="Rest proxy.with missing dependencies" name="should throw error if dependencies.createAjaxProxy is missing" time="0" /> </testsuite> <testsuite name="Rest proxy.with invalid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="3" skipped="0" disabled="0" failures="0"> <testcase classname="Rest proxy.with invalid config" name="missing config" time="0.001" /> <testcase classname="Rest proxy.with invalid config" name="missing config.route" time="0.001" /> <testcase classname="Rest proxy.with invalid config" name="config.route must be string or array" time="0.002" /> </testsuite> <testsuite name="Rest proxy.with valid config" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.006" errors="0" tests="6" skipped="0" disabled="0" failures="0"> <testcase classname="Rest proxy.with valid config" name="has to call createAjaxProxy with corresponding parameters" time="0.002" /> <testcase classname="Rest proxy.with valid config" name="has to call mockedAjaxProxy&apos;s read function when calling read" time="0" /> <testcase classname="Rest proxy.with valid config" name="has to call mockedAjaxProxy&apos;s createOne function when calling createOne" time="0.001" /> <testcase classname="Rest proxy.with valid config" name="has to call mockedAjaxProxy&apos;s readOneById function when calling read" time="0" /> <testcase classname="Rest proxy.with valid config" name="has to call mockedAjaxProxy&apos;s updateOneById function when calling read" time="0.001" /> <testcase classname="Rest proxy.with valid config" name="has to call mockedAjaxProxy&apos;s destroyOneById function when calling read" time="0.001" /> </testsuite> <testsuite name="json reader" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.004" errors="0" tests="11" skipped="0" disabled="0" failures="0"> <testcase classname="json reader" name="should have a creator function" time="0" /> <testcase classname="json reader" name="config: {} returns response" time="0" /> <testcase classname="json reader" name="config: {} and response parameter is null should return null" time="0" /> <testcase classname="json reader" name="config: {} and response parameter is undefined or an empty string or false should return an empty object" time="0" /> <testcase classname="json reader" name="config: {root: root} should return response[root]" time="0" /> <testcase classname="json reader" name="config: {record: record} should return response[record]" time="0.001" /> <testcase classname="json reader" name="config: {root: root, record: record} should return response[root][record]" time="0" /> <testcase classname="json reader" name="return props if root or record present" time="0" /> <testcase classname="json reader" name="throw exception if message, count or success defined, but root or record not" time="0" /> <testcase classname="json reader" name="return err" time="0.001" /> <testcase classname="json reader" name="should return response in out field if defined" time="0" /> </testsuite> <testsuite name="store" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.082" errors="0" tests="4" skipped="0" disabled="0" failures="0"> <testcase classname="store" name="add" time="0.002" /> <testcase classname="store" name="should call the callbacks before and after load" time="0.003" /> <testcase classname="store" name="should stop load execution when a before callback throws an exception" time="0.002" /> <testcase classname="store" name="config" time="0.001" /> </testsuite> <testsuite name="store.query changes" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.07" errors="0" tests="5" skipped="0" disabled="0" failures="0"> <testcase classname="store.query changes" name="find" time="0.015" /> <testcase classname="store.query changes" name="sort" time="0.013" /> <testcase classname="store.query changes" name="skip" time="0.014" /> <testcase classname="store.query changes" name="limit" time="0.015" /> <testcase classname="store.query changes" name="changing find, sort, skip and limit together... model.list still should be called once only." time="0.013" /> </testsuite> <testsuite name="store.belongsTo" timestamp="2018-10-03T13:55:03" hostname="localhost" time="0.003" errors="0" tests="2" skipped="0" disabled="0" failures="0"> <testcase classname="store.belongsTo" name="should pass belongsToValues as parameter to model&apos;s list function if load function is called" time="0.001" /> <testcase classname="store.belongsTo" name="should call load function if store.belongsToValues changed with correct value" time="0.002" /> </testsuite> </testsuites>