-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ignore native CSS service not supporting yet
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/language-service/test/lib/completions/contains.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { expect } from 'chai'; | ||
import { createDiagnostics } from '../../test-kit/diagnostics-setup'; | ||
import deindent from 'deindent'; | ||
|
||
describe('CSS contains', () => { | ||
it('should ignore native css lsp diagnostics unknown container at-rule and declarations', () => { | ||
// remove once css lsp supports is added or we implement the complete lsp ourselves | ||
const filePath = '/style.st.css'; | ||
|
||
const diagnostics = createDiagnostics( | ||
{ | ||
[filePath]: deindent` | ||
@container a (inline-size > 100px) {} | ||
.root { | ||
container-name: a; | ||
container: a / normal; | ||
} | ||
`, | ||
}, | ||
filePath | ||
); | ||
|
||
expect(diagnostics).to.eql([]); | ||
}); | ||
}); |