Skip to content

Commit

Permalink
Removed some obsolete @ts-expect-error
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Oct 4, 2020
1 parent 2ef51cf commit 8f2c80a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/Characteristic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ describe('Characteristic', () => {
const characteristic = createCharacteristic(Formats.BOOL);
characteristic.eventOnlyCharacteristic = true;

// @ts-expect-error
characteristic.handleGetRequest().then(() => {
expect(characteristic.status).toEqual(Status.SUCCESS);
expect(characteristic.value).toEqual(null);
Expand All @@ -127,7 +126,6 @@ describe('Characteristic', () => {
it('should return cached values if no listeners are registered', () => {
const characteristic = createCharacteristic(Formats.BOOL);

// @ts-expect-error
characteristic.handleGetRequest().then(() => {
expect(characteristic.status).toEqual(Status.SUCCESS);
expect(characteristic.value).toEqual(null);
Expand Down Expand Up @@ -288,10 +286,8 @@ describe('Characteristic', () => {

const listenerCallback = jest.fn();

// @ts-expect-error
characteristic.handleGetRequest();
characteristic.on(CharacteristicEventTypes.GET, listenerCallback);
// @ts-expect-error
characteristic.handleGetRequest();

expect(listenerCallback).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 8f2c80a

Please sign in to comment.