diff options
Diffstat (limited to 'src/vs/workbench/api/test/browser/extHostTypeConverter.test.ts')
-rw-r--r-- | src/vs/workbench/api/test/browser/extHostTypeConverter.test.ts | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/vs/workbench/api/test/browser/extHostTypeConverter.test.ts b/src/vs/workbench/api/test/browser/extHostTypeConverter.test.ts index 20ef8c11b6c..fb2b02bc890 100644 --- a/src/vs/workbench/api/test/browser/extHostTypeConverter.test.ts +++ b/src/vs/workbench/api/test/browser/extHostTypeConverter.test.ts @@ -6,7 +6,7 @@ import * as assert from 'assert'; import * as extHostTypes from 'vs/workbench/api/common/extHostTypes'; -import { MarkdownString, NotebookCellOutputItem, NotebookData } from 'vs/workbench/api/common/extHostTypeConverters'; +import { MarkdownString, NotebookCellOutputItem, NotebookData, LanguageSelector } from 'vs/workbench/api/common/extHostTypeConverters'; import { isEmptyObject } from 'vs/base/common/types'; import { forEach } from 'vs/base/common/collections'; import { LogLevel as _MainLogLevel } from 'vs/platform/log/common/log'; @@ -111,4 +111,16 @@ suite('ExtHostTypeConverter', function () { assert.strictEqual(item2.mime, item.mime); assert.deepStrictEqual(Array.from(item2.data), Array.from(item.data)); }); + + test('LanguageSelector', function () { + const out = LanguageSelector.from({ language: 'bat', notebookType: 'xxx' }); + assert.ok(typeof out === 'object'); + assert.deepStrictEqual(out, { + language: 'bat', + notebookType: 'xxx', + scheme: undefined, + pattern: undefined, + exclusive: undefined, + }); + }); }); |