Tested in Firefox 85.0 (Mac OS 10.15) on Tue Feb 02 2021

Fold | Unfold41 specs, 0 failed, 0 pending
#--- Utils module Test Suite Method Signatures: utils.createMethodSignature(error: string|object, data: string|object|array|boolean) -> Create default signature method object
method signatures should have at least 2 data properties
method signatures should have error and data properties
method signatures should have error and data properties even if you dont pass any parameter
#--- Utils module Test Suite UUID: utils.uuid() -> Generate an Universally unique identifier string
uuid() must have 36 length
uuid() getter must return a 36 bytes string
Generates 10,000 uuids and check collisions
#--- Utils module Test Suite toJSON: utils.toJSON(string|object) -> stringify and parse an object
toJSON() must support Strings
toJSON() Strings must be valid JSON string
toJSON() must support Object
#--- Utils module Test Suite Mongoose 2 Dexie: utils.mongooseToDexieTableString(schema) -> Mongoose schema conversion to Dexie table config
Table config must have __id as Primary Key
#--- LocalDatabaseTransport Class Test Suite Check class integrity
LocalDatabaseTransport must have a constructor
localDataTransport must be instance of LocalDatabaseTransport
#--- LocalDatabaseTransport Class Test Suite Check Internal Data API
We cannot to add new Data Schemas to schemas tree after connection
Internal Data API - We must be able to add user #1 to local database
Internal Data API - We must be able to add user #2 to local database
Internal Data API - We must be able to edit the added user on local database
Internal Data API - We must be able to find the added user by it ID
Internal Data API - We must be able to find the added user by it name
Internal Data API - We must not be able to find the added user by it username because it is not indexed
Internal Data API - We must be able to find the added user by it name under reverse order
Internal Data API - We must be able to delete the added user #1 from local database
Internal Data API - We must be able to delete the added user #2 from local database
Internal Data API - We must be able to bulk add users to local database
Internal Data API - We must be able to bulk edit users in local database
Internal Data API - We must be able to bulk delete users from local database
#--- Foundation Class Test Suite Check class integrity
Foundation must have a constructor
foundation must be instance of Foundation
Foundation.Schema static method must return a constructor
Foundation.Schema static method must create a Mongoose like schema
foundation.name getter must return the application name
foundation.name setter must set the application name
foundation.guid getter must return the application UUID string
foundation.getGuidStorage() method must return the application UUID string.
foundation.guid getter must return a 36 bytes string
foundation.guid is getter only
foundation.tabId getter must return the session UUID string. Each browser tab is considered a different session.
foundation.tabId getter must return a 36 bytes string
foundation.data is getter only
foundation.dataStrategy is getter only
foundation.dataStrategy is getter only
foundation.tabId is getter only
body>