Files
portainer/app/react/utils/hash.test.ts
T
LP B 0c2f07988a feat(app/sources): source create view (#2680)
Co-authored-by: Chaim Lev-Ari <chaim.lev-ari@portainer.io>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-10 21:34:46 +03:00

14 lines
394 B
TypeScript

import { describe, expect, it } from 'vitest';
import { strToHash } from './hash';
describe('strToHash', () => {
it('returns the same value for the same input', () => {
expect(strToHash('password123')).toBe(strToHash('password123'));
});
it('returns different values for different inputs', () => {
expect(strToHash('password123')).not.toBe(strToHash('password456'));
});
});