mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
24 lines
762 B
TypeScript
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');
|
||
|
});
|
||
|
});
|
||
|
});
|