aboutsummaryrefslogtreecommitdiff
path: root/test/background/completion/PropertyCompletionUseCase.test.ts
diff options
context:
space:
mode:
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