diff --git a/test/core/api.js b/test/core/api.js index 1bc6366d7f..97b695f4c0 100644 --- a/test/core/api.js +++ b/test/core/api.js @@ -393,15 +393,15 @@ suite("api", function () { test("not transformer", function () { assert.throws(function () { new PluginManager().validate("foobar", {}); - }, /didn't export a Transformer instance/); + }, /didn't export a Plugin instance/); assert.throws(function () { new PluginManager().validate("foobar", ""); - }, /didn't export a Transformer instance/); + }, /didn't export a Plugin instance/); assert.throws(function () { new PluginManager().validate("foobar", []); - }, /didn't export a Transformer instance/); + }, /didn't export a Plugin instance/); }); test("object request"); diff --git a/test/core/path.js b/test/core/path.js index 17fcf5dbdb..46528b4231 100644 --- a/test/core/path.js +++ b/test/core/path.js @@ -10,8 +10,10 @@ suite("traversal path", function () { var actualCode = transform(expectCode, { blacklist: "strict", plugins: [new Plugin("foobar", { - FunctionDeclaration: function () { - return "console.whatever()"; + visitor: { + FunctionDeclaration: function () { + return "console.whatever()"; + } } })] }).code;