aboutsummaryrefslogtreecommitdiff
path: root/test/background/completion/PropertyCompletionUseCase.test.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-04-09 10:38:37 +0900
committerGitHub <noreply@github.com>2020-04-09 10:38:37 +0900
commit1656d52d2cefb3846d968c6117484e6aefe7dabe (patch)
treeab58a99b832d2571e2168f2ee0e328bc12d9580e /test/background/completion/PropertyCompletionUseCase.test.ts
parentc6c2da8547891b50aef2f08e5f36d258183831ff (diff)
parent5176643e64d8f4a6be5fc73f0eb48dc65322e496 (diff)
Merge pull request #730 from ueokande/refactor-console-and-completion
Refactor console and completions
Diffstat (limited to 'test/background/completion/PropertyCompletionUseCase.test.ts')
-rw-r--r--test/background/completion/PropertyCompletionUseCase.test.ts15
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