Skip to main content
Module

x/kd_clients/deps.ts

Various HTTP clients for miscellaneous use.
Go to Latest
import * as kdClients from "https://deno.land/x/kd_clients@v1.0.0-preview.6/deps.ts";

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Executes a function which returns a promise, expecting it to reject.

Asserts that a spy is called as expected.

Asserts that a spy is called as much as expected and no more.

Executes a function, expecting it to throw. If it does not, then it throws.

Return the last portion of a path. Trailing directory separators are ignored, and optional suffix is removed.

Decodes a given RFC4648 base64 encoded string

Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Deep equality comparison used in assertions

Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:

Test whether or not the given path exists by checking with the file system. Please consider to check if the path is readable and either a file or a directory by providing additional options:

Return the extension of the path with leading period.

Verifies whether provided path is absolute

Creates a function that returns one of its arguments.

Creates a function that returns the iterable values. Any iterable values that are errors will be thrown.

Wraps a function or instance method with a Spy.

Replaces an instance method with a Stub.

Same as walk() but uses synchronous ops