UNPKG

athena-express

Version:

Athena-Express makes it easier to execute SQL queries on Amazon Athena by consolidating & astracting several methods in the AWS SDK

25 lines (21 loc) 598 B
"use strict"; const chai = require("chai"), expect = chai.expect, AthenaExpress = require(".."), aws = require("aws-sdk"); chai.should(); describe("Negative Scenarios", () => { it("should not have config object undefined", function() { expect(function() { new AthenaExpress(); }).to.throw(TypeError, "Config object not present in the constructor"); }); it("should not have aws object undefined", function() { expect(function() { const athenaExpress = new AthenaExpress({}); }).to.throw( TypeError, "AWS object not present or incorrect in the constructor" ); }); });