adapter.IDB
|
IDB |
#open
|
IDB#open |
should be fullfilled when a connection is opened
|
- |
should reject on open request error
|
- |
#close
|
IDB#close |
should be fullfilled when a connection is closed
|
- |
should be fullfilled when no connection has been opened
|
- |
should close an opened connection to the database
|
- |
#clear
|
IDB#clear |
should clear the database
|
- |
should isolate records by collection
|
- |
should reject on transaction error
|
- |
#execute
|
IDB#execute |
should return a promise
|
- |
No preloading
|
- |
should open a connection to the db
|
- |
should execute the specified callback
|
- |
should fail if the callback returns a promise
|
- |
should rollback if the callback fails
|
- |
should provide a transaction parameter
|
- |
should create a record
|
- |
should update a record
|
- |
should delete a record
|
- |
should reject on store method error
|
- |
should reject on transaction error
|
- |
Preloaded records
|
- |
should expose preloaded records using get()
|
- |
#get
|
IDB#get |
should retrieve a record from its id
|
- |
should return undefined when record is not found
|
- |
should reject on transaction error
|
- |
#list
|
IDB#list |
should retrieve the list of records
|
- |
should prefix error encountered
|
- |
should reject on transaction error
|
- |
should isolate records by collection
|
- |
Filters
|
- |
on non-indexed fields
|
- |
single value
|
- |
should filter the list on a single pre-indexed column
|
- |
multiple values
|
- |
should filter the list on a single pre-indexed column
|
- |
should handle non-existent keys
|
- |
should handle empty lists
|
- |
on indexed fields
|
- |
single value
|
- |
should filter the list on a single pre-indexed column
|
- |
multiple values
|
- |
should filter the list on a single pre-indexed column
|
- |
should filter the list combined with other filters
|
- |
should handle non-existent keys
|
- |
should handle empty lists
|
- |
Deprecated #loadDump
|
IDB#loadDump |
should call importBulk
|
- |
#importBulk
|
IDB#importBulk |
should reject on transaction error
|
- |
#getLastModified
|
IDB#getLastModified |
should reject with any encountered transaction error
|
- |
#saveLastModified
|
IDB#saveLastModified |
should resolve with lastModified value
|
- |
should save a lastModified value
|
- |
should allow updating previous value
|
- |
should reject on transaction error
|
- |
#importBulk
|
IDB#importBulk |
should import a list of records.
|
- |
should override existing records.
|
- |
should update the collection lastModified value.
|
- |
should preserve older collection lastModified value.
|
- |
With custom dbName
|
IDB#getLastModified |
should isolate records by dbname
|
- |
should isolate timestamps by dbname
|
- |
#saveMetadata
|
IDB#saveMetadata |
should return null when no metadata is found
|
- |
should store metadata in db
|
- |
#migration
|
IDB#open |
should migrate records
|
- |
should migrate timestamps
|
- |
should create the collections store
|
- |
should not fail if already migrated
|
- |
should delete the old database
|
- |
should not delete other databases
|
- |
should not migrate if option is set to false
|
- |
should not fail if old database is broken or incomplete
|
- |
adapters.BaseAdapter
|
- |
should throw for non-implemented methods
|
- |
Collection
|
Collection |
Helpers
|
- |
#recordsEqual
|
recordsEqual |
should compare record data without metadata
|
- |
should compare record data without metadata nor local fields
|
- |
#constructor
|
Collection#constructor |
should expose a passed events instance
|
- |
should propagate its events property to child dependencies
|
- |
should allow providing a prefix for the db name
|
- |
should use the default adapter if not any is provided
|
- |
should throw incompatible adapter options
|
- |
should allow providing an adapter option
|
- |
should pass adapterOptions to adapter
|
- |
transformers registration
|
- |
should throw an error on non-array remoteTransformers
|
- |
should throw an error on non-object transformer
|
- |
should throw an error on encode method missing
|
- |
should throw an error on decode method missing
|
- |
hooks registration
|
- |
should throw an error on non-object hooks
|
- |
should throw an error on array hooks
|
- |
should return a empty object if no hook where specified
|
- |
should throw an error on unknown hook
|
- |
should throw if the hook isn't a list
|
- |
should throw an error if the hook is not an array of functions
|
- |
idSchema registration
|
- |
should throw an error on non-object transformer
|
- |
should throw an error on generate method missing
|
- |
should throw an error on validate method missing
|
- |
SyncResultObject
|
SyncResultObject |
should create a result object
|
- |
set lastModified
|
- |
should set lastModified
|
- |
#add
|
SyncResultObject#add |
should add typed entries
|
- |
should concat typed entries
|
- |
should overwrite entries with same id
|
- |
should deduplicate added entries with same id
|
- |
should update the ok status flag on errors
|
- |
should update the ok status flag on conflicts
|
- |
should alter non-array properties
|
- |
should return the current result object
|
- |
should support adding single objects
|
- |
#reset
|
SyncResultObject#reset |
should reset to array prop to its default value
|
- |
should return the current result object
|
- |
#clear
|
Collection#clear |
should clear collection records
|
- |
should clear collection timestamp
|
- |
should clear collection metadata
|
- |
#create
|
Collection#create |
should create a record and return created record data
|
- |
should create a record and return created record perms
|
- |
should assign an id to the created record
|
- |
should assign an id to the created record (custom IdSchema)
|
- |
should accept a record for the 'generate' function
|
- |
should reject when useRecordId is true and record is missing an id
|
- |
should reject when synced is true and record is missing an id
|
- |
should reject when passed an id and synced and useRecordId are false
|
- |
should not alter original record
|
- |
should add record status on creation
|
- |
should reject if passed argument is not an object
|
- |
should actually persist the record into the collection
|
- |
should support the useRecordId option
|
- |
should validate record's Id when provided
|
- |
should validate record's Id when provided (custom IdSchema)
|
- |
should reject with any encountered transaction error
|
- |
should reject with a hint if useRecordId has been used
|
- |
should throw error when using createKeyValueStoreIdSchema.generate
|
- |
should return true when using createKeyValueStoreIdSchema.validate
|
- |
#update
|
Collection#update |
should update a record
|
- |
should return the old data for the record
|
- |
should update record status on update
|
- |
should not update record status if only local fields are changed
|
- |
should reject updates on a non-existent record
|
- |
should reject updates on a non-object record
|
- |
should reject updates on a record without an id
|
- |
should validate record's id when provided
|
- |
should validate record's id when provided (custom IdSchema)
|
- |
should update a record from its id (custom IdSchema)
|
- |
should patch existing record when patch option is used
|
- |
should remove previous record fields
|
- |
should preserve record.last_modified
|
- |
should optionally mark a record as synced
|
- |
should preserve created status if record was never synced
|
- |
#put
|
Collection#put |
should update a record
|
- |
should change record status to updated
|
- |
should preserve created status if record was never synced
|
- |
should create a new record if non-existent
|
- |
should set status to created if it created a record
|
- |
should reject updates on a non-object record
|
- |
should reject updates on a record without an id
|
- |
should validate record's id when provided
|
- |
should update deleted records
|
- |
should set status of deleted records to updated
|
- |
should validate record's id when provided (custom IdSchema)
|
- |
should remove previous record fields
|
- |
should preserve record.last_modified
|
- |
should return the old data for the record
|
- |
should not return the old data for a deleted record
|
- |
should signal when a record was created by oldRecord=undefined
|
- |
#cleanLocalFields
|
Collection#cleanLocalFields |
should remove the local fields
|
- |
should take into account collection local fields
|
- |
#resolve
|
Collection#resolve |
should mark a record as updated
|
- |
should mark a record as synced if resolved with remote
|
- |
#get
|
Collection#get |
should isolate records by bucket
|
- |
should retrieve a record from its id
|
- |
should retrieve a record from its id (custom IdSchema)
|
- |
should validate passed id
|
- |
should validate passed id (custom IdSchema)
|
- |
should have record status info attached
|
- |
should reject in case of record not found
|
- |
should reject on virtually deleted record
|
- |
should retrieve deleted record with includeDeleted
|
- |
#getAny
|
Collection#getAny |
should retrieve a record from its id
|
- |
should resolve to undefined if not present
|
- |
should resolve to virtually deleted record
|
- |
#delete
|
Collection#delete |
should validate passed id
|
- |
should validate passed id (custom IdSchema)
|
- |
Virtual
|
- |
should virtually delete a record
|
- |
should reject on non-existent record
|
- |
should reject on already deleted record
|
- |
should return deleted record
|
- |
Factual
|
- |
should factually delete a record
|
- |
should resolve with deletion information
|
- |
should reject on non-existent record
|
- |
should delete if already virtually deleted
|
- |
should return deleted record
|
- |
#deleteAll
|
Collection#deleteAll |
should be able to soft delete all articles
|
- |
should not delete anything when there are no records
|
- |
#deleteAny
|
Collection#deleteAny |
should delete an existing record
|
- |
should resolve on non-existant record
|
- |
should indicate that it deleted
|
- |
should indicate that it didn't delete when record is gone
|
- |
should return deleted record
|
- |
#list
|
Collection#list |
Basic
|
- |
should retrieve the list of records
|
- |
shouldn't list virtually deleted records
|
- |
should support the includeDeleted option
|
- |
Ordering
|
- |
should order records on last_modified DESC by default
|
- |
should order records on custom field ASC
|
- |
should order records on custom field DESC
|
- |
should order records on boolean values ASC
|
- |
should order records on boolean values DESC
|
- |
Filtering
|
- |
should filter records on indexed fields
|
- |
should filter records on existing field
|
- |
should filter records on missing field
|
- |
should filter records on multiple fields using 'and'
|
- |
SubObject Filtering
|
- |
Filters nested objects
|
- |
should return empty array if missing subObject field
|
- |
Ordering & Filtering
|
- |
should order and filter records
|
- |
Deprecated #loadDump
|
Collection#loadDump |
should call importBulk
|
- |
#importBulk
|
Collection#importBulk |
should import records in the collection
|
- |
should fail if records is not an array
|
- |
should fail if id is invalid
|
- |
should fail if id is missing
|
- |
should fail if last_modified is missing
|
- |
should mark imported records as synced.
|
- |
should ignore already imported records.
|
- |
should overwrite old records.
|
- |
should not overwrite unsynced records.
|
- |
should not overwrite records without last modified.
|
- |
#gatherLocalChanges
|
Collection#gatherLocalChanges |
transformers
|
- |
should asynchronously encode records
|
- |
should encode even deleted records
|
- |
#pullChanges
|
Collection#pullChanges |
When no conflicts occured
|
- |
incoming changes hook
|
- |
should be called
|
- |
should reject the promise if the hook throws
|
- |
should use the results of the hooks
|
- |
should be able to chain hooks
|
- |
should pass the collection as the second argument
|
- |
should reject if the hook returns something strange
|
- |
should resolve if the hook returns a promise
|
- |
With transformers
|
- |
should decode incoming encoded records using a single transformer
|
- |
should decode incoming encoded records using multiple transformers
|
- |
should decode incoming records even when deleted
|
- |
should not fetch remote records if result status isn't ok
|
- |
should fetch remote changes from the server
|
- |
should use timestamp to fetch remote changes from the server
|
- |
should pass provided filters when polling changes from server
|
- |
should respect expectedTimestamp when requesting changes
|
- |
should resolve with imported creations
|
- |
should resolve with imported updates
|
- |
should resolve with imported deletions
|
- |
should resolve with no conflicts detected
|
- |
should actually import changes into the collection
|
- |
should skip deleted data missing locally
|
- |
should not list identical records as skipped
|
- |
Error handling
|
- |
should expose any import transaction error
|
- |
When a conflict occured
|
- |
should resolve listing conflicting changes with MANUAL strategy
|
- |
should ignore resolved conflicts during sync
|
- |
When a resolvable conflict occured
|
- |
should resolve with solved changes
|
- |
#importChanges
|
Collection#importChanges |
should return errors when encountered
|
- |
should return typed errors
|
- |
should only retrieve the changed record
|
- |
should merge remote with local fields
|
- |
should ignore local fields when detecting conflicts
|
- |
#pushChanges
|
Collection#pushChanges |
should publish local changes to the server
|
- |
should not publish local fields to the server
|
- |
should update published records local status
|
- |
should not publish records created and deleted locally and never synced
|
- |
should delete unsynced virtually deleted local records
|
- |
should delete locally the records deleted remotely
|
- |
should delete locally the records already deleted remotely
|
- |
Batch requests made
|
- |
should call delete() for deleted records
|
- |
should call create() for created records
|
- |
should call update() for updated records
|
- |
Error handling
|
- |
should report encountered publication errors
|
- |
should report typed publication errors
|
- |
#resetSyncStatus
|
Collection#resetSyncStatus |
should reset the synced status of all local records
|
- |
should garbage collect the locally deleted records
|
- |
should clear last modified value of all records
|
- |
should clear any previously saved lastModified value
|
- |
should resolve with the number of local records processed
|
- |
#sync
|
Collection#sync |
should validate the remote option
|
- |
should use a custom remote option
|
- |
should revert the custom remote option on success
|
- |
should revert the custom remote option on failure
|
- |
should load fixtures
|
- |
should pullMetadata with options
|
- |
should fetch latest changes from the server
|
- |
should store latest lastModified value when no conflicts
|
- |
shouldn't store latest lastModified on conflicts
|
- |
shouldn't store latest lastModified on errors
|
- |
should not execute a last pull on push failure
|
- |
should not execute a last pull if nothing to push
|
- |
should not redownload pushed changes
|
- |
should store collection metadata
|
- |
Options
|
- |
should transfer the headers option
|
- |
should transfer the strategy option
|
- |
should transfer the retry option
|
- |
should transfer the expectedTimestamp option
|
- |
Server backoff
|
- |
should reject on server backoff by default
|
- |
should perform sync on server backoff when ignoreBackoff is true
|
- |
Retry
|
- |
should retry if specified
|
- |
Events
|
- |
should send a success event
|
- |
should send an error event
|
- |
should send an error event
|
- |
should provide success details about sync
|
- |
should provide error details about sync
|
- |
#execute
|
Collection#execute |
should support get
|
- |
should support getAny
|
- |
should support delete
|
- |
should support deleteAll
|
- |
should support deleteAny
|
- |
should support create
|
- |
should support update
|
- |
should support upsert
|
- |
should roll back operations if there's a failure
|
- |
should perform all operations if there's no failure
|
- |
should resolve to the return value of the transaction
|
- |
has operations that are synchronous
|
- |
#pullMetadata
|
Collection#pullMetadata |
passes headers to underlying client
|
- |
Events
|
- |
should emit an event on create
|
- |
should emit an event on update
|
- |
should emit an event on delete
|
- |
should emit a 'delete' event when calling deleteAll
|
- |
should emit a 'deleteAll' event when calling deleteAll
|
- |
should emit an event on deleteAny
|
- |
should not emit if deleteAny fails
|
- |
should emit a create event on upsert
|
- |
should emit a update event on upsert
|
- |
should provide created record in data
|
- |
should provide new record in data and old record
|
- |
should not provide oldRecord on creation with upsert
|
- |
should provide old record
|
- |
Transactions
|
- |
should send every events of a transaction
|
- |
should not send any event if the transaction fails
|
- |
should not send any change event if nothing happens in transaction
|
- |
should send a single changed event for the whole transaction
|
- |
Kinto
|
Kinto |
static properties
|
- |
get adapters()
|
- |
should provide an adapters static getter
|
- |
should provide an adapters.BaseAdapter getter
|
- |
should provide an adapters.IDB getter
|
- |
get syncStrategy()
|
- |
should provide a syncStrategy static getter
|
- |
#constructor
|
Kinto#constructor |
should expose a passed events instance
|
- |
should create an events property if none passed
|
- |
should propagate its events property to child dependencies
|
- |
should propagate the requestMode option to child dependencies
|
- |
should propagate the timeout option to child dependencies
|
- |
should propagate the dbName option to child dependencies
|
- |
#collection()
|
Kinto#collection |
should return a Collection
|
- |
should resolve to a named collection instance
|
- |
should use specified bucket name if specified
|
- |
should use default bucket if not specified
|
- |
should reject on missing collection name
|
- |
should setup the Api cient using default server URL
|
- |
should setup the Api cient using provided server URL
|
- |
should pass option headers to the api
|
- |
should create collection using an optional adapter
|
- |
should override adapter for collection if specified
|
- |
should make the collection's remoteTransformers default to []
|
- |
should set collection's remoteTransformers
|
- |
On next MANUAL sync
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have the same lastModified value
|
- |
should not contain conflicts anymore
|
- |
should not skip anything
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
Integration tests
|
- |
Default server configuration
|
- |
Synchronization
|
- |
No change
|
- |
should have an ok status
|
- |
should not contain conflicts
|
- |
should have same lastModified value
|
- |
No conflict
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should not contain conflicts
|
- |
should not skip records
|
- |
should import server data
|
- |
should publish local unsynced records
|
- |
should publish deletion of locally deleted records
|
- |
should not update anything
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
should fetch every server page
|
- |
Incoming conflict
|
- |
MANUAL strategy (default)
|
- |
should not have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should have the incoming conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should not merge anything
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
On next MANUAL sync
|
- |
should not have an ok status
|
- |
should contain no errors
|
- |
should not have bumped the lastModified value
|
- |
should preserve unresolved conflicts
|
- |
should not skip anything
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
CLIENT_WINS strategy
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should have updated lastModified
|
- |
should have no incoming conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should publish resolved conflict using local version
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
CLIENT_WINS strategy with transformers
|
- |
should publish resolved conflict using local version
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
SERVER_WINS strategy
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should have updated lastModified
|
- |
should have no incoming conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should not publish resolved conflict using remote version
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
Resolving conflicts doesn't interfere with sync
|
- |
should sync over resolved records
|
- |
should not skip other conflicts
|
- |
Outgoing conflicting local deletion
|
- |
With remote update
|
- |
should properly list the encountered conflict
|
- |
should list the proper type of conflict
|
- |
should have the expected conflicting local version
|
- |
should have the expected conflicting remote version
|
- |
With remote deletion
|
- |
should properly list the encountered conflict
|
- |
should provide the record
|
- |
Outgoing conflict
|
- |
MANUAL strategy (default)
|
- |
should not have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should not have updated lastModified
|
- |
should have the outgoing conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should not merge anything
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
On next MANUAL sync
|
- |
should not have an ok status
|
- |
should contain no errors
|
- |
should not have bumped the lastModified value
|
- |
should preserve unresolved conflicts
|
- |
should not skip anything
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
CLIENT_WINS strategy
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should have updated lastModified
|
- |
should have the outgoing conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should publish resolved conflicts to the server
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
CLIENT_WINS strategy with transformers
|
- |
should put local database in the expected state
|
- |
should put the remote database in the expected state
|
- |
SERVER_WINS strategy
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should not have updated lastModified
|
- |
should not have the outgoing conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
SERVER_WINS strategy with transformers
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
Outgoing conflict (remote deleted)
|
- |
MANUAL strategy (default)
|
- |
should not have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should not have updated lastModified
|
- |
should have the outgoing conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should not merge anything
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
On next MANUAL sync
|
- |
should not have an ok status
|
- |
should contain no errors
|
- |
should not have bumped the lastModified value
|
- |
should preserve unresolved conflicts
|
- |
should not skip anything
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
CLIENT_WINS strategy
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should not have the outgoing conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should publish resolved conflicts to the server
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
CLIENT_WINS strategy with transformers
|
- |
should put local database in the expected state
|
- |
should put the remote database in the expected state
|
- |
SERVER_WINS strategy
|
- |
should have an ok status
|
- |
should contain no errors
|
- |
should have a valid lastModified value
|
- |
should have the outgoing conflict listed
|
- |
should not skip records
|
- |
should not import anything
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
should put remote test server data in the expected state
|
- |
SERVER_WINS strategy with transformers
|
- |
should not publish anything
|
- |
should not update anything
|
- |
should list resolved records
|
- |
should put local database in the expected state
|
- |
Load dump
|
- |
should sync changes on loaded data
|
- |
Batch request chunking
|
- |
should create the expected number of records
|
- |
Schemas
|
- |
IdSchema
|
- |
should generate id's using the IdSchema
|
- |
Transformers
|
- |
should list published records unencoded
|
- |
should store encoded data remotely
|
- |
should keep local data decoded
|
- |
Transforming local deletes
|
- |
should have sent preserve-on-send new remotely
|
- |
should have sent preserve-on-send old remotely
|
- |
should have locally deleted preserve-on-send new
|
- |
should have locally deleted preserve-on-send old
|
- |
should have deleted delete-on-receive
|
- |
should have deleted deleted-by-other-client
|
- |
Flushed server
|
- |
should reject a call to sync() with appropriate message
|
- |
should allow republishing local collection to flushed server
|
- |
Backed off server
|
- |
should reject sync when the server sends a Backoff header
|
- |
Deprecated protocol version
|
- |
Soft EOL
|
- |
should warn when the server sends a deprecation Alert header
|
- |
Hard EOL
|
- |
should reject with a 410 Gone when hard EOL is received
|
- |
KintoBase
|
KintoBase |
static properties
|
- |
get adapters()
|
- |
should provide an adapters static getter
|
- |
should provide an adapters.BaseAdapter getter
|
- |
constructor
|
- |
should complain if a database adaptor is not provided
|
- |
collection options
|
- |
should pass localFields option
|
- |
Utils
|
- |
#sortObjects
|
sortObjects |
should order on field ASC
|
- |
should order on field DESC
|
- |
should order on mixed undefined values DESC
|
- |
should order on mixed undefined values ASC
|
- |
should not change order on all fields undefined
|
- |
should not order the list on missing field
|
- |
#filterObjects
|
filterObjects |
should filter list on a single field query
|
- |
should filter list on a multiple fields query
|
- |
should filter list on missing field
|
- |
should filter on multiple field values
|
- |
#waterfall
|
waterfall |
should resolve with init value when list is empty
|
- |
should resolve executing a single sync function
|
- |
should resolve executing multiple sync functions
|
- |
should resolve using a single promise returning function
|
- |
should resolve using multiple promise returning functions
|
- |
deepEqual
|
- |
should return true if values are equal
|
- |
should return true if key are not sorted
|
- |
should return true if array values are equal
|
- |
should return true if sub-objects are equal
|
- |
should return false if one is falsy
|
- |
should return false with extra keys
|
- |
should return false with different types
|
- |
should return true when object keys order differs
|
- |
should return false if sub-object differs
|
- |
should return true if sub-arrays of objects are equal
|
- |
should return false if sub-array orders differ
|
- |
omitKeys
|
- |
should return same object if no key is passed
|
- |
should omit specified keys
|
- |
transformSubObjectFilters
|
- |
should convert string in dot notation to nested object
|
- |
multiple strings with repeated keys become one object with unique keys
|
- |