'use strict'

var test = require('tape')

var Compiler = require('../src/app/compiler')
var EventManager = require('../src/lib/eventManager')

test('compiler.compile smoke', function (t) {
  t.plan(1)

  var noop = function () {}
  var getCacheFile = function () { return 'fakeCacheFile' }
  var fakeEditor = {onChangeSetup: noop, clearAnnotations: noop, getValue: noop, setCacheFileContent: noop, getCacheFile: getCacheFile}
  var fakeQueryParams = {get: function () { return {} }}
  var compiler = new Compiler(fakeEditor, fakeQueryParams, null, null, new EventManager())
  compiler.setCompileJSON(noop)
  compiler.compile()
  t.ok(compiler)
})

'use strict'

var test = require('tape')

var Compiler = require('../src/app/compiler')

test('compiler.compile smoke', function (t) {
  t.plan(1)

  var noop = function () {}
  var fakeImport = function (url, cb) { cb('Not implemented') }
  var compiler = new Compiler(fakeImport)
  compiler.setCompileJSON(noop)
  compiler.compile({ 'test': '' }, 'test')
  t.ok(compiler)
})

Update compiler test for the new API
Update compiler test for the new API
