Skip to content

Commit 8b35c6a

Browse files
committed
test: Base.plugin(fooPlugin).plugin(barPlugin)
1 parent 7838611 commit 8b35c6a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ describe("Base", () => {
2727
expect(fooBarTest.foo()).toEqual("foo");
2828
expect(fooBarTest.bar()).toEqual("bar");
2929
});
30+
it(".plugin(fooPlugin).plugin(barPlugin)", () => {
31+
const FooBarTest = Base.plugin(fooPlugin).plugin(barPlugin);
32+
const fooBarTest = new FooBarTest();
33+
expect(fooBarTest.foo()).toEqual("foo");
34+
expect(fooBarTest.bar()).toEqual("bar");
35+
});
3036
it(".defaults({foo: 'bar'})", () => {
3137
const BaseWithDefaults = Base.defaults({ foo: "bar" });
3238
const defaultsTest = new BaseWithDefaults();

0 commit comments

Comments
 (0)