Co-authored-by: Chaim Lev-Ari <chaim.lev-ari@portainer.io> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
394 B
TypeScript
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'));
|
|
});
|
|
});
|