diff --git a/test/compiler-test.js b/test/compiler-test.js index 1ace1aaa40..80f803208e 100644 --- a/test/compiler-test.js +++ b/test/compiler-test.js @@ -6,7 +6,8 @@ test('compiler.compile smoke', function (t) { t.plan(1); var noop = function () {}; - var fakeEditor = {onChangeSetup: noop, clearAnnotations: noop, getValue: noop, setCacheFileContent: noop, getCacheFile: noop}; + var getCacheFile = function () { return 'fakeCacheFile'; }; + var fakeEditor = {onChangeSetup: noop, clearAnnotations: noop, getValue: noop, setCacheFileContent: noop, getCacheFile: getCacheFile}; var fakeOutputField = {empty: noop}; var fakeQueryParams = {get: function () { return {}; }}; var compiler = new Compiler(fakeEditor, null, fakeQueryParams, null, fakeOutputField);