| 48 | |
| 49 | it("shadows base prototype methods without modifying them", () => { |
| 50 | class PrintableBox extends Box { |
| 51 | override toString() { |
| 52 | return "Box" |
| 53 | } |
| 54 | toJSON(): unknown { |
| 55 | return { _id: "Box" } |
| 56 | } |
| 57 | } |
| 58 | class PrintableEffectBox extends Effectable.Mixin(PrintableBox) { |
| 59 | override asEffect() { |
| 60 | return Effect.succeed(this.value) |
nothing calls this directly
no outgoing calls
no test coverage detected