1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 15:50:28 +01:00
metamask-extension/ui/helpers/constants/flask/delineator.test.ts
2023-04-03 18:04:30 +02:00

24 lines
762 B
TypeScript

import { DelineatorType, getDelineatorTitle } from './delineator';
describe('delineator utils', () => {
describe('getDelineatorTitle', () => {
it('should return the good key for an error delineator type', () => {
const result = getDelineatorTitle(DelineatorType.Error);
expect(result).toStrictEqual('errorWithSnap');
});
it('should return the good key for an insights delineator type', () => {
const result = getDelineatorTitle(DelineatorType.Insights);
expect(result).toStrictEqual('insightsFromSnap');
});
it('should return the content key for any other types', () => {
const result = getDelineatorTitle(DelineatorType.Content);
expect(result).toStrictEqual('contentFromSnap');
});
});
});