text: /* */ 
  require("mock-modules").autoMockOff();
  describe('es6-object-short-notation-visitors', function() {
    var transformFn;
    var destructuringVisitors;
    var shortObjectsVisitors;
    var visitors;
    beforeEach(function() {
      require("mock-modules").dumpCache();
      transformFn = require("../../src/jstransform").transform;
      shortObjectsVisitors = require("../es6-object-short-notation-visitors").visitorList;
      destructuringVisitors = require("../es6-destructuring-visitors").visitorList;
      visitors = shortObjectsVisitors.concat(destructuringVisitors);
    });
    function transform(code) {
      return transformFn(visitors, code).code;
    }
    function expectTransform(code, result) {
      expect(transform(code)).toEqual(result);
    }
    it('should transform short notation and return 5', function() {
      var code = transform(['(function(x, y) {', '  var data = {x, y};', '  return data.x + data.y;', '})(2, 3);'].join('\n'));
      expect(eval(code)).toEqual(5);
    });
    it('should transform work with destructuring and return 10', function() {
      var code = transform(['var x = 5, y = 5;', '(function({x, y}) {', '  var data = {x, y};', '  return data.x + data.y;', '})({x, y});'].join('\n'));
      expect(eval(code)).toEqual(10);
    });
    it('should transform simple short notation', function() {
      expectTransform('function foo(x, y) { return {x, y}; }', 'function foo(x, y) { return {x:x, y:y}; }');
      expectTransform(['function', '', 'foo    (', '    x,', '          y', '', ')', '', '        {', ' return         {', '          x,', '  y};', '}'].join('\n'), ['function', '', 'foo    (', '    x,', '          y', '', ')', '', '        {', ' return         {', '          x:x,', '  y:y};', '}'].join('\n'));
    });
  });
  