Skip to content

Commit

Permalink
Updated all test.js files to spec.ts files
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Howard committed Feb 17, 2024
1 parent 1ad9ec1 commit 70699ad
Show file tree
Hide file tree
Showing 27 changed files with 840 additions and 580 deletions.
20 changes: 10 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
],
"program": "${workspaceFolder}\\dist\\index.js"
}, {
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"args": [
"-r",
"ts-node/register",
"--timeout",
"999999",
"--colors",
"${workspaceFolder}/test/**/*.js"
],
"internalConsoleOptions": "openOnSessionStart",
"name": "Mocha Tests",
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
"${workspaceFolder}/test/**/*spec.ts",
],
"type": "node"
}
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
]
}
2 changes: 1 addition & 1 deletion dist/Agent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ export type ExitFunctionArg = {
aborted: boolean;
};
export type FunctionArg = number | string | boolean | null | ExitFunctionArg;
export type ActionResult = CompleteState | Promise<CompleteState> | boolean;
export type ActionResult = CompleteState | Promise<CompleteState> | boolean | void;
export type AgentFunction = (this: Agent, ...args: FunctionArg[]) => ActionResult;
export type GlobalFunction = (agent: Agent, ...args: FunctionArg[]) => ActionResult;
3 changes: 1 addition & 2 deletions dist/BehaviourTree.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AnyState } from "./State";
import Root from "./nodes/decorator/Root";
import { Agent, GlobalFunction } from "./Agent";
import { CallbackAttributeDetails } from "./attributes/callbacks/Callback";
import { GuardAttributeDetails } from "./attributes/guards/Guard";
Expand All @@ -24,7 +23,7 @@ export declare class BehaviourTree {
/**
* The main root tree node.
*/
readonly rootNode: Root;
private readonly _rootNode;
/**
* Creates a new instance of the BehaviourTree class.
* @param definition The behaviour tree definition as either an MDSL string, root node definition object or array of root node definition objects.
Expand Down
18 changes: 9 additions & 9 deletions dist/bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/bundle.js.map

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 70699ad

Please sign in to comment.