Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit c7f2d76

Browse files
committed
fix: singleton plugins tests
1 parent 3c5d555 commit c7f2d76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/TippySingleton.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ describe('<TippySingleton />', () => {
298298
</TippySingleton>,
299299
);
300300

301-
expect(instance.plugins).toEqual(plugins);
301+
expect(instance.plugins.slice(1)).toEqual(plugins);
302302
});
303303
});
304304

test/useSingleton.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ describe('The useSingleton hook', () => {
263263
const singleton = useSingleton({
264264
plugins,
265265
onCreate(instance) {
266-
expect(instance.plugins).toEqual(plugins);
266+
expect(instance.plugins.slice(1)).toEqual(plugins);
267267
},
268268
});
269269

0 commit comments

Comments
 (0)