How to use the webdav/test/server/index.js.test function in webdav

To help you get started, we’ve selected a few webdav examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github perry-mitchell / webdav-fs / test / specs / createClient.spc.js View on Github external
it("accepts an agent instance", function(done) {
        const agent = new http.Agent({});
        const client = createClient(
            "http://localhost:" + createServer.test.port + "/webdav/server",
            {
                username: createServer.test.username,
                password: createServer.test.password,
                httpAgent: agent
            }
        );
        client.readdir("/", (err, contents) => {
            expect(err).to.be.null;
            expect(contents).to.have.lengthOf(4);
            done();
        });
    });
});
github perry-mitchell / webdav-fs / test / specs / createClient.spc.js View on Github external
it("accepts an agent instance", function(done) {
        const agent = new http.Agent({});
        const client = createClient(
            "http://localhost:" + createServer.test.port + "/webdav/server",
            {
                username: createServer.test.username,
                password: createServer.test.password,
                httpAgent: agent
            }
        );
        client.readdir("/", (err, contents) => {
            expect(err).to.be.null;
            expect(contents).to.have.lengthOf(4);
            done();
        });
    });
});
github perry-mitchell / webdav-fs / test / specs / index.js View on Github external
function createWebDAVClient() {
    return createClient(
        "http://localhost:" + createServer.test.port + "/webdav/server",
        {
            username: createServer.test.username,
            password: createServer.test.password
        }
    )
}
github perry-mitchell / webdav-fs / test / specs / index.js View on Github external
function createWebDAVClient() {
    return createClient(
        "http://localhost:" + createServer.test.port + "/webdav/server",
        {
            username: createServer.test.username,
            password: createServer.test.password
        }
    )
}

webdav

WebDAV client for NodeJS

MIT
Latest version published 5 months ago

Package Health Score

80 / 100
Full package analysis