var transform = require("../lib/6to5/transformation/transform");
var assert    = require("assert");
var File      = require("../lib/6to5/file");

suite("api", function () {
  test("{ code: false }", function () {
    var result = transform("foo('bar');", { code: false });
    assert.ok(!result.code);
  });

  test("addDeclaration unknown", function () {
    var file = new File;
    assert.throws(function () {
      file.addDeclaration("foob");
    }, /unknown declaration foob/);
  });
});

@@ -302,16 +302,149 @@
 %0A  %7D);%0A%0A
+  test(%22%7B ast: false %7D%22, function () %7B%0A    var result = transform(%22foo('bar');%22, %7B ast: false %7D);%0A    assert.ok(!result.ast);%0A  %7D);%0A%0A
   test(%22

add api opts.ast === false test