Skip to content

Commit

Permalink
Updated test comments to reflect the relocated functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnettwilliam committed Mar 22, 2024
1 parent 313b3ad commit 722bd10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions platform/test/spec/testFunctionRegistrySpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe("FunctionRegistry", () => {
"status": 200
});

// platform - toolsManager
// toolsmanager - get action function spy
let toolsManagerSpy = jasmine.createSpyObj(['getActionFunction']);
toolsManagerSpy.getActionFunction.and.returnValue(new ActionFunction({
path: TOOL_URL
Expand Down Expand Up @@ -137,7 +137,7 @@ describe("FunctionRegistry", () => {
"status": 200
});

// platform - toolsManager
// toolsmanager - get action function spy
let toolsManagerSpy = jasmine.createSpyObj(['getActionFunction']);
toolsManagerSpy.getActionFunction.and.returnValue(new ActionFunction({
parameters: [
Expand Down
13 changes: 6 additions & 7 deletions platform/test/spec/testToolManagerSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ describe("ToolManager", () => {
// Setup
tm = new ToolManager();

// platform - toolsmanager
// toolsmanager - functionRegister
functionRegistrySpy_resolve = spyOn(FunctionRegistry.prototype, "resolve").and.returnValue(
new ActionFunction({
parameters: [
Expand All @@ -215,7 +215,6 @@ describe("ToolManager", () => {
})
);

// platform - functionRegistry_call
spyOn (FunctionRegistry.prototype, "call").and.returnValue (
new Promise(function(resolve) {
resolve(ACTION_FUNCTION_RESULT);
Expand Down Expand Up @@ -294,7 +293,7 @@ describe("ToolManager", () => {
["language", {type: "text", value: TOOL_LANGUAGE }] ]
)

// platform - toolsManager
// toolsmanager - functionRegister
functionRegistrySpy_resolve.and.returnValue(
new ActionFunction({
parameters: [
Expand All @@ -305,7 +304,7 @@ describe("ToolManager", () => {
})
);

// platform - conversion function spies
// toolsmanager - conversion function spies
spyOn( ToolManager.prototype, "convertIncludingMetamodel").and.returnValue(
new Promise(function(resolve) {
resolve( {name: PARAM1_NAME, data: PARAM1_CONVERTED_VALUE} );
Expand Down Expand Up @@ -345,7 +344,7 @@ describe("ToolManager", () => {
["language", {type: "text", value: TOOL_LANGUAGE }] ]
)

// platform - toolsManager
// toolsmanager - functionRegister
functionRegistrySpy_resolve.and.returnValue(
new ActionFunction({
parameters: [
Expand Down Expand Up @@ -389,7 +388,7 @@ describe("ToolManager", () => {
// Setup
tm = new ToolManager();

// platform - toolsManager
// toolsmanager - functionRegister
functionRegistrySpy_find = spyOn(FunctionRegistry.prototype, "find");

spyOn(ToolManager.prototype, "getActionFunction").and.callFake( (functionId) => {
Expand Down Expand Up @@ -582,7 +581,7 @@ describe("ToolManager", () => {
spyOn( FunctionRegistry.prototype, "callConversion").and.returnValue(
callConversionReturn);

// platform - toolsManager
// toolsmanager - get action function spy
spyOn(ToolManager.prototype, "getActionFunction").and.returnValue(new ActionFunction({
parameters: [
{name: "input", type: SOURCE_TYPE, instanceOf: "metamodel"},
Expand Down

0 comments on commit 722bd10

Please sign in to comment.