1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 04:46:10 +01:00
metamask-extension/ui/components/app/flask/snap-ui-renderer/snap-ui-renderer.test.js
Frederik Bolding c75d2dce55
[FLASK] Implement Snaps UI Renderer (#16605)
* 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
2022-12-09 13:05:31 +01:00

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());
});
});