-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
why can a town name have fucking brackets??
- Loading branch information
Showing
5 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { describe, it, expect } from 'vitest' | ||
import { Aurora } from '../../src/main' | ||
|
||
describe('[Squaremap/Aurora] GPS', () => { | ||
const sampleLoc = { x: -8000, z: 100 } | ||
|
||
it('can find the safest route', async () => { | ||
const route = await Aurora.GPS.safestRoute(sampleLoc) | ||
|
||
expect(route).toBeDefined() | ||
expect(route.distance).toBeGreaterThanOrEqual(0) | ||
}) | ||
|
||
it('can find the fastest route', async () => { | ||
const route = await Aurora.GPS.fastestRoute(sampleLoc) | ||
|
||
expect(route).toBeDefined() | ||
expect(route.distance).toBeGreaterThanOrEqual(0) | ||
}) | ||
|
||
// it('can check player is online when emitting', async () => { | ||
// const ops = await Nova.Players.online() | ||
// expect(ops).toBeDefined() | ||
// expect(ops).toBeTruthy() | ||
// assertType<Player[]>(ops) | ||
|
||
// const op = await Nova.Players.get(ops[0]['name']) | ||
// expect(op).toBeTruthy() | ||
|
||
// const online = await Nova.GPS.playerIsOnline(op) | ||
// expect(online).toEqual(true) | ||
// }) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters