fakeEditor needs to return string from getCacheFile (for testing)

pull/1/head
Dave Hoover 9 years ago
parent 37c7e81733
commit ad041b7b46
  1. 3
      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);

Loading…
Cancel
Save