Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bendvc committed Apr 28, 2023
1 parent 252abdd commit a4c409e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
mockBasket,
mockRecommenderDetails
} from './einstein-mock-data'
import fetchMock from 'jest-fetch-mock'

const einsteinApi = new EinsteinAPI({
host: `http://localhost/test-path`,
Expand All @@ -21,7 +22,6 @@ const einsteinApi = new EinsteinAPI({
cookieId: 'test-usid'
})

const fetchMock = require('jest-fetch-mock')
const fetchOriginal = global.fetch

beforeAll(() => {
Expand All @@ -35,9 +35,8 @@ afterAll(() => {

describe('EinsteinAPI', () => {
test('viewProduct sends expected api request', async () => {

await einsteinApi.sendViewProduct(mockProduct)

expect(fetch).toHaveBeenCalledWith(
'http://localhost/test-path/v3/activities/test-site-id/viewProduct',
{
Expand Down

0 comments on commit a4c409e

Please sign in to comment.