UNPKG

conan

Version:

Barbarically simple framework for building deployment systems.

18 lines (14 loc) 352 B
import { handler } from "lambda.js"; describe("someHandler(event, context)", () => { let returnValue; beforeEach(done => { handler({}, {succeed: (value) => { returnValue = value; done(); }}); }); it("should call the database and return a value", () => { const expectedValue = "Bob"; returnValue.should.eql(expectedValue); }); });