mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-12-01 23:07:08 +00:00
1 parent
177d0093ea
commit
46a8dad405
7 files changed
+40
-35
No files matched your search
+2
-2
@@ -8,11 +8,11 @@ describe('KeyringOption', () => {
|
||||
it('should not allow initOptions to be called more than once', () => {
|
||||
const state = {};
|
||||
// first call
|
||||
keyringOptionInstance.init(state);
|
||||
keyringOptionInstance.init(state as any);
|
||||
|
||||
// second call
|
||||
expect(() => {
|
||||
keyringOptionInstance.init(state);
|
||||
keyringOptionInstance.init(state as any);
|
||||
}).toThrowError('Unable to initialise options more than once');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user