Monitor Min v0.5.5

Show:

SyncProbeTest Class

Module: Monitor

Unit tests for the SyncProbe probe.

Methods

BaseSync

()

Test group for base Sync (non LiveSync) probe usage

BaseSync-CreateWithId

()

Tests that a new object with an ID gets saved

BaseSync-CreateWitoutId

()

Tests that a new object without an ID gets an ID assigned

BaseSync-DestroyById

()

Tests the model.destroy functionality

BaseSync-FetchById

()

Tests that a fetch by ID works

BaseSync-SetUp

()

One time setup for BaseSync tests

BaseSync-TearDown

()

One time teardown up for BaseSync tests

LiveSync

()

Test group for Live model synchronization

LiveSync-ClientChange

()

Tests that a client change in the data model persists to the server

LiveSync-Connect

()

Tests LiveSync connection

LiveSync-Disconnect

()

Tests LiveSync disconnect

LiveSync-ServerChange

()

Tests that a server change propagates the data to the client with a change event

LiveSync-ServerDelete

()

Tests that a backend deletion is detected

LiveSync-SetUp

()

One time setup for LiveSync tests

LiveSync-TearDown

()

One time teardown up for BaseSync tests

SyncProbe

()

Test group for baseline SyncProbe functionality

SyncProbe-Classes

()

Tests that classes are in correct

SyncProbe-Coerce

()

The server decides what specific type of SyncProbe to instantiate for classes of data models. When a SyncProbe is requested, the SyncProbe instance becomes an instance of a specific type. This tests that this coersion is made.