Skip to content

Commit

Permalink
test: Move old konnectorAlerts test in right place and renamed it
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Nov 2, 2021
1 parent 6822c5d commit a5cabf3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import CozyClient from 'cozy-client'
import { sendNotification } from 'cozy-notifications'

import matchAll from 'utils/matchAll'
import { sendTriggerNotifications } from './konnectorAlerts/sendTriggerNotifications'
import { containerForTesting } from './konnectorAlerts/createTriggerAt'
import { sendTriggerNotifications } from './sendTriggerNotifications'
import { containerForTesting } from './createTriggerAt'
import logger from 'ducks/konnectorAlerts/logger'

jest.spyOn(containerForTesting, 'createTriggerAt')
Expand Down Expand Up @@ -189,7 +189,7 @@ const {
jobs: mockJobResponse
} = makeResponsesFromEvents(events)

describe('job notifications service', () => {
describe('sendTriggerNotifications', () => {
const setup = ({ triggersResponse, settingsResponse, jobsResponse } = {}) => {
const client = new CozyClient({})
client.query = jest.fn(async queryDef => {
Expand Down

0 comments on commit a5cabf3

Please sign in to comment.