1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-01 21:57:06 +01:00
metamask-extension/ui/helpers/constants/snaps/delineator.test.ts
Frederik Bolding c716592fd1
Clean up some code fencing around snaps (#18802)
* Clean up some code fencing around snaps

* Fix code fencing

* Fix more fencing issues
2023-05-03 10:53:58 +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');
});
});
});