VariadicExpressionT_test.js 850 B

1234567891011121314151617181920212223242526272829
  1. "use strict";
  2. var assert = require("assert"),
  3. VariadicExpressionT = require("../../../../lib/pipeline/expressions/VariadicExpressionT"),
  4. NaryExpressionT = require("../../../../lib/pipeline/expressions/NaryExpressionT");
  5. //TODO: refactor these test cases using Expression.parseOperand() or something because these could be a whole lot cleaner...
  6. module.exports = {
  7. "VariaticExpression": {
  8. "constructor()": {
  9. "should not throw Error when constructing without args": function testConstructor() {
  10. assert.doesNotThrow(function () {
  11. new VariadicExpressionT({});
  12. });
  13. },
  14. "should be an instance of NaryExpression": function () {
  15. assert(new VariadicExpressionT() instanceof NaryExpression);
  16. }
  17. }
  18. }
  19. };
  20. if (!module.parent)(new(require("mocha"))()).ui("exports").reporter("spec").addFile(__filename).run(process.exit);