diff --git a/src/test/e2e/completion.test.ts b/src/test/e2e/completion.test.ts index 3e7500e..0da45a4 100644 --- a/src/test/e2e/completion.test.ts +++ b/src/test/e2e/completion.test.ts @@ -47,6 +47,15 @@ suite('Should do completion', async function () { }); }); + + test('Complete encoded RAML file inclusion', async () => { + const docUri = getDocUri('with space api.raml'); + await testCompletion(docUri, new vscode.Position(3, 11), { + items: [ + { label: 'with space library.raml', kind: vscode.CompletionItemKind.Property } + ] + }); + }); }); async function testCompletion( diff --git a/testFixture/with space api.raml b/testFixture/with space api.raml new file mode 100644 index 0000000..4a31e94 --- /dev/null +++ b/testFixture/with space api.raml @@ -0,0 +1,4 @@ +#%RAML 1.0 + +uses: + lib: w \ No newline at end of file diff --git a/testFixture/with space library.raml b/testFixture/with space library.raml new file mode 100644 index 0000000..ab0ed66 --- /dev/null +++ b/testFixture/with space library.raml @@ -0,0 +1,3 @@ +#%RAML 1.0 Library +types: + t: string \ No newline at end of file