提交 1193484a 编写于 作者: J Joao Moreno

fix tests

上级 e1c4f184
......@@ -32,16 +32,14 @@ suite('Workbench - ResourceEditorInput', () => {
accessor = instantiationService.createInstance(ServiceAccessor);
});
test('simple', function (done) {
let resource = URI.from({ scheme: 'inMemory', authority: null, path: 'thePath' });
test('simple', function () {
let resource = URI.from({ scheme: 'inmemory', authority: null, path: 'thePath' });
accessor.modelService.createModel('function test() {}', accessor.modeService.getOrCreateMode('text'), resource);
let input: ResourceEditorInput = instantiationService.createInstance(ResourceEditorInput, 'The Name', 'The Description', resource);
input.resolve().then((model: ResourceEditorModel) => {
return input.resolve().then((model: ResourceEditorModel) => {
assert.ok(model);
assert.equal(model.getValue(), 'function test() {}');
done();
});
});
});
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册