remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/test/compiler-test.js

17 lines
559 B

var test = require('tape');
var Compiler = require('../src/app/compiler');
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 fakeOutputField = {empty: noop};
var fakeQueryParams = {get: function () { return {}; }};
var compiler = new Compiler(fakeEditor, null, fakeQueryParams, null, fakeOutputField);
compiler.setCompileJSON(noop);
compiler.compile();
t.ok(compiler);
});