Skip to content

Commit

Permalink
test(bluetooth-classic): remove unnecessary mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mKeRix committed Feb 1, 2020
1 parent fdf759a commit c208d83
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import { NewRssiEvent } from './new-rssi.event';
import { RoomPresenceDistanceSensor } from '../room-presence/room-presence-distance.sensor';
import KalmanFilter from 'kalmanjs';

jest.mock('child_process');
jest.mock('util');
jest.mock('../room-presence/room-presence-distance.sensor');
jest.mock('kalmanjs', () => {
return jest.fn().mockImplementation(() => {
Expand All @@ -25,6 +23,10 @@ jest.mock('kalmanjs', () => {
};
});
});
jest.mock('util', () => ({
...jest.requireActual('util'),
promisify: jest.fn()
}));

describe('BluetoothClassicService', () => {
let service: BluetoothClassicService;
Expand Down

0 comments on commit c208d83

Please sign in to comment.