SparkyTestClient.from constructor

SparkyTestClient.from(
  1. Sparky server
)

Wraps an already-running Sparky instance in a test client.

The server must have been started and Sparky.ready must have completed before calling this.

Implementation

factory SparkyTestClient.from(Sparky server) {
  return SparkyTestClient._(server);
}