mirror of
https://github.com/pezkuwichain/pezkuwi-extension.git
synced 2026-04-22 03:17:58 +00:00
5d54192e6d
- Update all copyright headers from 2025 to 2026 - Fix @polkadot references to @pezkuwi in config files - Fix eslint.config.js import path Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
611 B
TypeScript
25 lines
611 B
TypeScript
// Copyright 2019-2026 @pezkuwi/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;
|