}
/** @inheritDoc */
- protected handleKillMessage (message: MessageValue<Data, unknown>): void {
+ protected handleKillMessage (message: MessageValue<Data>): void {
super.handleKillMessage(message)
this.port?.unref()
this.port?.close()
expect(circularArray.size).toBe(0)
expect(circularArray).toStrictEqual(new CircularArray(0))
circularArray = new CircularArray(5, 1, 2, 3, 4, 5)
+ circularArray.resize(1)
+ expect(circularArray.size).toBe(1)
+ expect(circularArray).toStrictEqual(new CircularArray(1, 1))
+ circularArray = new CircularArray(5, 1, 2, 3, 4, 5)
circularArray.resize(3)
expect(circularArray.size).toBe(3)
expect(circularArray).toStrictEqual(new CircularArray(3, 1, 2, 3))