mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
c716592fd1
* Clean up some code fencing around snaps * Fix code fencing * Fix more fencing issues
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');
|
|
});
|
|
});
|
|
});
|