Skip to content

Commit

Permalink
test(xiaomi-mi): fix noble mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mKeRix committed Oct 17, 2020
1 parent dc68f41 commit 607975f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/integrations/xiaomi-mi/xiaomi-mi.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
jest.mock(
'@abandonware/noble',
() => {
return {};
},
{ virtual: true }
);

import { Peripheral } from '@abandonware/noble';
import { ConfigService } from '../../config/config.service';
import { Test, TestingModule } from '@nestjs/testing';
Expand All @@ -13,14 +21,6 @@ import c from 'config';
import { BluetoothService } from '../bluetooth/bluetooth.service';
import { BluetoothModule } from '../bluetooth/bluetooth.module';

jest.mock(
'@abandonware/noble',
() => {
return {};
},
{ virtual: true }
);

describe('XiaomiMiService', () => {
let service: XiaomiMiService;
const bluetoothService = {
Expand Down

0 comments on commit 607975f

Please sign in to comment.