Skip to content

Commit

Permalink
remove unused analytics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b-cooper committed Nov 9, 2023
1 parent d183718 commit 80e373a
Showing 1 changed file with 0 additions and 51 deletions.
51 changes: 0 additions & 51 deletions app/src/redux/analytics/__tests__/make-event.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ describe('analytics events map', () => {
name: 'pipetteOffsetCalibrationStarted',
properties: {
...action.payload,
calibrationExists: true,
markedBad: true,
pipetteModel: 'my pipette model',
},
})
})
Expand All @@ -74,58 +71,10 @@ describe('analytics events map', () => {
name: 'tipLengthCalibrationStarted',
properties: {
...action.payload,
calibrationExists: true,
markedBad: true,
pipetteModel: 'pipette-model',
},
})
})

it('sessions:ENSURE_SESSION for deck cal -> deckCalibrationStarted event', () => {
const state = {} as any
const action = {
type: 'sessions:ENSURE_SESSION',
payload: {
sessionType: 'deckCalibration',
},
} as any
return expect(makeEvent(action, state)).resolves.toEqual({
name: 'deckCalibrationStarted',
properties: {
calibrationStatus: 'IDENTITY',
markedBad: true,
pipettes: { left: { model: 'my pipette model' } },
},
})
})

it('sessions:ENSURE_SESSION for health check -> calibrationHealthCheckStarted event', () => {
const state = {} as any
const action = {
type: 'sessions:ENSURE_SESSION',
payload: {
sessionType: 'calibrationCheck',
},
} as any
return expect(makeEvent(action, state)).resolves.toEqual({
name: 'calibrationHealthCheckStarted',
properties: {
pipettes: { left: { model: 'my pipette model' } },
},
})
})

it('sessions:ENSURE_SESSION for other session -> no event', () => {
const state = {} as any
const action = {
type: 'sessions:ENSURE_SESSION',
payload: {
sessionType: 'some-other-session',
},
} as any
return expect(makeEvent(action, state)).resolves.toBeNull()
})

it('sessions:CREATE_SESSION_COMMAND for exit -> {type}Exit', () => {
const state = {} as any
const action = {
Expand Down

0 comments on commit 80e373a

Please sign in to comment.