mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 04:37:13 +01:00
c75d2dce55
* Start implementation of Snaps UI Renderer * Add snap name and fix some design issues * Fix lint * Add some types * More fixes * Actually install snaps-ui * Use JS instead of TS * Remove unused deps * Remove dep * Update LavaMoat policies * Fix style lint * Add story * Small tweaks after rebase * Remove spacer and add test * Fix lint * Remove console.log * Add error message * Remove edge-case that doesnt exist anymore * Update yarn.lock * Update policy
10 lines
306 B
JavaScript
10 lines
306 B
JavaScript
import { NodeType } from '@metamask/snaps-ui';
|
|
import { UI_MAPPING } from './snap-ui-renderer';
|
|
|
|
describe('Snap UI mapping', () => {
|
|
it('supports all exposed components', () => {
|
|
const nodes = Object.values(NodeType);
|
|
expect(Object.keys(UI_MAPPING).sort()).toStrictEqual(nodes.sort());
|
|
});
|
|
});
|