aboutsummaryrefslogtreecommitdiff
path: root/test/background/completion/PropertyCompletionUseCase.test.ts
blob: 57f5bfff84f54beac77b8b4c71b6fa58dd90c0f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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' });
    })
  });
});