This commit is contained in:
Jaco Greeff
2020-11-10 18:19:24 +01:00
parent f1576f280d
commit d81e91af7b
19 changed files with 140 additions and 166 deletions
@@ -2,7 +2,9 @@
// SPDX-License-Identifier: Apache-2.0
import { KeyringStruct } from '../types';
import keyringOptionInstance from '.';
import { KeyringOption } from '.';
const keyringOptionInstance = new KeyringOption();
describe('KeyringOption', (): void => {
it('should not allow initOptions to be called more than once', (): void => {
+1 -5
View File
@@ -34,7 +34,7 @@ const sortByCreated = (a: SingleAddress, b: SingleAddress): number => {
return 0;
};
class KeyringOption implements KeyringOptionInstance {
export class KeyringOption implements KeyringOptionInstance {
public readonly optionsSubject: BehaviorSubject<KeyringOptions> = new BehaviorSubject(this.emptyOptions());
public createOptionHeader (name: string): KeyringSectionOption {
@@ -138,7 +138,3 @@ class KeyringOption implements KeyringOptionInstance {
};
}
}
const keyringOptionInstance = new KeyringOption();
export default keyringOptionInstance;