mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix tests.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
parent
4f676d4e86
commit
38acae76d0
@ -18,7 +18,7 @@ const mockedWatch = watch as jest.MockedFunction<typeof watch>;
|
||||
|
||||
describe("ExtensionDiscovery", () => {
|
||||
it("emits add for added extension", async done => {
|
||||
globalThis.__non_webpack_require__.mockImplementationOnce(() => ({
|
||||
globalThis.__non_webpack_require__.mockImplementation(() => ({
|
||||
name: "my-extension"
|
||||
}));
|
||||
let addHandler: (filePath: string) => void;
|
||||
@ -61,9 +61,6 @@ describe("ExtensionDiscovery", () => {
|
||||
});
|
||||
|
||||
it("doesn't emit add for added file under extension", async done => {
|
||||
globalThis.__non_webpack_require__.mockImplementationOnce(() => ({
|
||||
name: "my-extension"
|
||||
}));
|
||||
let addHandler: (filePath: string) => void;
|
||||
|
||||
const mockWatchInstance: any = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user