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("{ ast: false }", function () {
    var result = transform("foo('bar');", { ast: false });
    assert.ok(!result.ast);
  });

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

@@ -446,27 +446,22 @@
 est(%22add
-Declaration
+Helper
  unknown
@@ -552,19 +552,14 @@
 .add
-Declaration
+Helper
 (%22fo

fix api test