Skip to content

Commit

Permalink
democha
Browse files Browse the repository at this point in the history
  • Loading branch information
tailuge committed Dec 28, 2024
1 parent afc22a0 commit cc71042
Show file tree
Hide file tree
Showing 27 changed files with 7 additions and 350 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"ini": "5.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"mocha": "11.0.1",
"node-notifier": "^10.0.1",
"nodemon": "3.1.9",
"prettier": "3.4.2",
Expand Down
1 change: 0 additions & 1 deletion test/controller/controller.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Controller, HitEvent, Input } from "../../src/controller/controller"
import { Container } from "../../src/container/container"
Expand Down
1 change: 0 additions & 1 deletion test/controller/replay.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Container } from "../../src/container/container"
import { BreakEvent } from "../../src/events/breakevent"
Expand Down
1 change: 0 additions & 1 deletion test/events/eventutil.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { AimEvent } from "../../src/events/aimevent"
import { AbortEvent } from "../../src/events/abortevent"
Expand Down
1 change: 0 additions & 1 deletion test/events/recorder.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Recorder } from "../../src/events/recorder"
import { Container } from "../../src/container/container"
Expand Down
1 change: 0 additions & 1 deletion test/gen/diamond.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import JSONCrush from "jsoncrush"

Expand Down
1 change: 0 additions & 1 deletion test/model/ball.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball, State } from "../../src/model/ball"
import { Vector3 } from "three"
Expand Down
1 change: 0 additions & 1 deletion test/model/collision.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball, State } from "../../src/model/ball"
import { Collision } from "../../src/model/physics/collision"
Expand Down
1 change: 0 additions & 1 deletion test/model/cushion.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball } from "../../src/model/ball"
import { TableGeometry } from "../../src/view/tablegeometry"
Expand Down
1 change: 0 additions & 1 deletion test/model/physics.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Vector3 } from "three"
import {
Expand Down
1 change: 0 additions & 1 deletion test/model/pocket.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball } from "../../src/model/ball"
import { Pocket } from "../../src/model/physics/pocket"
Expand Down
1 change: 0 additions & 1 deletion test/model/table.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball, State } from "../../src/model/ball"
import { TableGeometry } from "../../src/view/tablegeometry"
Expand Down
1 change: 0 additions & 1 deletion test/rules/fourteenone.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Container } from "../../src/container/container"
import { GameEvent } from "../../src/events/gameevent"
Expand Down
1 change: 0 additions & 1 deletion test/rules/snooker.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Container } from "../../src/container/container"
import { GameEvent } from "../../src/events/gameevent"
Expand Down
1 change: 0 additions & 1 deletion test/rules/threecushion.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Container } from "../../src/container/container"
import { Aim } from "../../src/controller/aim"
Expand Down
1 change: 0 additions & 1 deletion test/server/lobby.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Lobby } from "../../src/network/server/lobby"
import { ChatEvent } from "../../src/events/chatevent"
Expand Down
1 change: 0 additions & 1 deletion test/server/messagerelay.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { InMemoryMessageRelay } from "../mocks/inmemorymessagerelay"
import { MessageRelay } from "../../src/network/client/messagerelay"
Expand Down
1 change: 0 additions & 1 deletion test/server/session.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Session } from "../../src/network/client/session"

Expand Down
1 change: 0 additions & 1 deletion test/utils/overlap.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball } from "../../src/model/ball"
import { Table } from "../../src/model/table"
Expand Down
1 change: 0 additions & 1 deletion test/utils/respot.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Ball } from "../../src/model/ball"
import { Table } from "../../src/model/table"
Expand Down
1 change: 0 additions & 1 deletion test/view/aiminput.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { AimInputs } from "../../src/view/aiminputs"
import { initDom, canvas3d } from "./dom"
Expand Down
1 change: 0 additions & 1 deletion test/view/cameratop.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { CameraTop } from "../../src/view/cameratop"

Expand Down
1 change: 0 additions & 1 deletion test/view/menu.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { initDom } from "./dom"
import { fireEvent } from "@testing-library/dom"
Expand Down
1 change: 0 additions & 1 deletion test/view/sliders.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { initDom } from "./dom"
import { Sliders } from "../../src/view/sliders"
Expand Down
1 change: 0 additions & 1 deletion test/view/trace.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { Trace } from "../../src/view/trace"
import { Vector3 } from "three"
Expand Down
1 change: 0 additions & 1 deletion test/view/view.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import "mocha"
import { expect } from "chai"
import { View } from "../../src/view/view"
import { Table } from "../../src/model/table"
Expand Down
Loading

0 comments on commit cc71042

Please sign in to comment.