Skip to content

Instantly share code, notes, and snippets.

@incompl
Last active December 22, 2015 04:09
Show Gist options
  • Select an option

  • Save incompl/6415307 to your computer and use it in GitHub Desktop.

Select an option

Save incompl/6415307 to your computer and use it in GitHub Desktop.
// Used in tests to create a new Cloak client. Using
// this function instead of doing it manually means
// clients will be properly cleaned up after tests
// are done.
function createClient() {
var client = createCloakClient();
client._setLibs(_, io);
clients.push(client);
return client;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment