Skip to content

Commit 78edefd

Browse files
mntn test was importing crypto package and failing lint check (#3899)
1 parent 35f83a3 commit 78edefd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/destination-actions/src/destinations/mntn-audiences/__tests__/syncAudience.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
*/
1414

1515
import nock from 'nock'
16-
import { createHash } from 'crypto'
1716
import { createTestEvent, createTestIntegration } from '@segment/actions-core'
17+
import { processHashing } from '../../../lib/hashing-utils'
1818
import Destination from '../index'
1919
import { MNTN_API_VERSION } from '../versioning-info'
2020

@@ -36,7 +36,7 @@ const TEST_SETTINGS = {
3636
}
3737

3838
function sha256(value: string): string {
39-
return createHash('sha256').update(value).digest('hex')
39+
return processHashing(value, 'sha256', 'hex')
4040
}
4141

4242
// Pull the action directly for testing performBatch without the test harness

0 commit comments

Comments
 (0)