diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-03-29 21:47:09 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-03-29 21:47:09 +0900 |
commit | c3be3dde555d1f51f696f4bfbe181e7bad6d3563 (patch) | |
tree | c42d2b9115f3aca5fd90d7a72baa6990ae388c21 /test | |
parent | 0340c82bc82738a63c8a374930cf39cbed5c7c8c (diff) |
Complete properties on set command
Diffstat (limited to 'test')
-rw-r--r-- | test/background/completion/PropertyCompletionUseCase.test.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/background/completion/PropertyCompletionUseCase.test.ts b/test/background/completion/PropertyCompletionUseCase.test.ts new file mode 100644 index 0000000..57f5bff --- /dev/null +++ b/test/background/completion/PropertyCompletionUseCase.test.ts @@ -0,0 +1,15 @@ +import 'reflect-metadata'; +import PropertyCompletionUseCase from "../../../src/background/completion/PropertyCompletionUseCase"; +import { expect } from 'chai'; + +describe('PropertyCompletionUseCase', () => { + describe('getProperties', () => { + it('returns property types', async () => { + const sut = new PropertyCompletionUseCase(); + + const properties = await sut.getProperties(); + expect(properties).to.deep.contain({ name: 'smoothscroll', type: 'boolean' }); + expect(properties).to.deep.contain({ name: 'complete', type: 'string' }); + }) + }); +});
\ No newline at end of file |