Files
extension/packages/extension-mocks/src/chromeWrapper.ts
T
Tarik Gul 73cedbb824 2025 (#1493)
* 2025

* Enable ci execution of diff

* Update extra files

* fix webpack config header
2025-01-03 02:15:31 +02:00

25 lines
612 B
TypeScript

// Copyright 2019-2025 @polkadot/extension-mocks authors & contributors
// SPDX-License-Identifier: Apache-2.0
import sinonChrome from 'sinon-chrome';
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace ChromeWrapper {
export interface IAction {
setBadgeText: (content: object) => Promise<void>;
}
export const action: IAction = {
setBadgeText: (_: object) => {
return new Promise<void>((resolve, _reject) => {
resolve();
});
}
};
}
const extendedSinonChrome = {
...sinonChrome,
action: ChromeWrapper.action
};
export default extendedSinonChrome;