Skip to content

Commit

Permalink
Rename IsTest to IsAutomatedTest (#138)
Browse files Browse the repository at this point in the history
Fixes #136
  • Loading branch information
SketchingDev authored Dec 2, 2023
1 parent 83ff883 commit 243b3a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Retry unordered message', () => {
webMessengerSessionFactory: (config, reorderedMessageDelayer) =>
new WebMessengerGuestSession(
config,
{ IsTest: 'true' },
{ IsAutomatedTest: 'true' },
reorderedMessageDelayer,
() => new WebSocket(`ws://localhost:${genesysServerFixture.port}`),
),
Expand Down
2 changes: 1 addition & 1 deletion packages/genesys-web-messaging-tester-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ovotech/genesys-web-messaging-tester-cli",
"version": "2.0.1",
"version": "2.0.2",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export function createAiTestCommand({
command = new Command(),
ui = new Ui(),
openAiChatCompletionFactory = (config) => new OpenAI(config).chat.completions,
webMessengerSessionFactory = (config) => new WebMessengerGuestSession(config, { IsTest: 'true' }),
webMessengerSessionFactory = (config) =>
new WebMessengerGuestSession(config, { IsAutomatedTest: 'true' }),
conversationFactory = (session) => new Conversation(session),
processEnv = process.env,
fsReadFileSync = readFileSync,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function createScriptedTestCommand({
reorderedMessageDelayerFactory = (delayBeforeEmittingInMs) =>
new ReorderedMessageDelayer(delayBeforeEmittingInMs),
webMessengerSessionFactory = (config, reorderedMessageDelayer) =>
new WebMessengerGuestSession(config, { IsTest: 'true' }, reorderedMessageDelayer),
new WebMessengerGuestSession(config, { IsAutomatedTest: 'true' }, reorderedMessageDelayer),
conversationFactory = (session) => new Conversation(session),
fsReadFileSync = readFileSync,
fsAccessSync = accessSync,
Expand Down

0 comments on commit 243b3a1

Please sign in to comment.