From a2fb70bae3ebe37490b78261d71f931aa6a2db14 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 26 Jun 2015 15:16:31 +0100 Subject: [PATCH] fix deprecated return from visitor method api --- test/core/api.js | 2 +- test/core/path.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/core/api.js b/test/core/api.js index aafa0a337d..0afc77a516 100644 --- a/test/core/api.js +++ b/test/core/api.js @@ -70,7 +70,7 @@ suite("api", function () { assert.deepEqual(transform('import localName from "./array";', { resolveModuleSource: function() { - return 'override-source'; + return "override-source"; } }).metadata.modules.imports, [ { diff --git a/test/core/path.js b/test/core/path.js index 46528b4231..c03f6eaeae 100644 --- a/test/core/path.js +++ b/test/core/path.js @@ -12,7 +12,7 @@ suite("traversal path", function () { plugins: [new Plugin("foobar", { visitor: { FunctionDeclaration: function () { - return "console.whatever()"; + this.replaceWithSourceString("console.whatever()"); } } })]