Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

whiteout-io/browsercrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browsercrow

Incredibly hacky IMAP integration test server in the browser. This is a port of Hoodiecrow.

See demo here.

Hook BrowserCrow server with BrowserBox

Create server instance

server = new BrowserCrow({});

Create client instance

client = new BrowserBox(false, false, {
    auth: {
        user: "testuser",
        pass: "demo"
    },
    useSSL: false
});

Replace TCPSocket constructor with a mock object from the server

client.client._TCPSocket = server.createTCPSocket();

Connect to the server and start hacking

client.connect();

Thats it!

About

IMAP integration test server in the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published