Skip to content

Commit c2b5331

Browse files
committed
fix lint issues
1 parent 9c41eef commit c2b5331

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/device-id/src/get-device-id.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('getDeviceId', function () {
132132

133133
let errorCalled = false;
134134
try {
135-
const result = await getDeviceId({
135+
await getDeviceId({
136136
getMachineId,
137137
onError: () => {
138138
errorCalled = true;
@@ -147,6 +147,9 @@ describe('getDeviceId', function () {
147147
expect((error as Error).message).to.equal('Operation timed out');
148148
expect(errorCalled).to.equal(false);
149149
}
150+
151+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
152+
clearTimeout(timeoutId!);
150153
});
151154

152155
it('handles external promise resolution', async function () {

0 commit comments

Comments
 (0)