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()"); } } })]